--~--~---------~--~----~------------~-------~--~----~您收到此信息是由于您订阅了 Google 论坛“Grails联盟-GrailsUnion”论坛。
要在此论坛发帖,请发电子邮件到 grail...@googlegroups.com
要退订此论坛,请发邮件至 grailsunion...@googlegroups.com
更多选项,请通过 http://groups.google.com/group/grailsunion?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---
code如下:
businessType(inList:[message
(code:'businessChance.businessType.NONE'),message
(code:'businessChance.businessType.NEW'),message
(code:'businessChance.businessType.OLD')])
On Dec 15, 12:32 pm, Michael <yaoqiangshm...@gmail.com> wrote:
> 在message_ZH.properties 中定义后, 直接在domain, controller, view中就可以使用啦
> 比如说:
> message_ZH定义如下
> a.type1=国企
> a.type2=外企
> 在domain中的constaints可以写
> property(inList[message(code:'a.type1'),message(code:'a.type2')])
>
> 貌似我是这么用的,但是可以参考grails的example, 那个例子有用到
>
> 2009/12/10 clt.phoenix <clt.phoe...@gmail.com>
>
>
>
> > enum 怎么支持国际化??
>
> > 在 Thu, 10 Dec 2009 11:17:15 +0800,Ford Guo <agile....@gmail.com> 写道:
>
> > > enum :),可支持国际化 :)
> > > Ford Guo
>
> > > 2009/12/10 Alex wang <idea.w...@gmail.com>
>
> > >> 对于常见的状态,比如"未审核、已审核"等不同的状态,我们一般用数字表示,也有用枚举类型来表示的,大家在实际使用中哪种方式比较多?
>
> > >> ---------------------------------------------
> > >> Alex wang
> > >> website:颠覆软件http://www.foxlog.org
> > >> twitter:http://twitter.com/foxlog
> > >> douban:http://www.douban.com/people/foxlog
> > >> gmail: idea.wang[at]gmail.com
>
> > --
> > 使用 Opera 革命性的电子邮件客户程序:http://www.opera.com/mail/
> > --~--~---------~--~----~------------~-------~--~----~
> > 您收到此信息是由于您订阅了 Google 论坛"Grails联盟-GrailsUnion"论坛。
> > 要在此论坛发帖,请发电子邮件到 grail...@googlegroups.com
> > 要退订此论坛,请发邮件至 grailsunion...@googlegroups.com<grailsunion%2Bunsubscribe@googlegr oups.com>
> > 更多选项,请通过http://groups.google.com/group/grailsunion?hl=zh-CN访问该论坛
> > -~----------~----~----~----~------~----~------~--~---
1) Enum types are now mapped using their String value rather than the ordinal value. You can revert to the old behavior by changing your mapping as follows:
static mapping = { someEnum enumType:"ordinal" }
2) Bidirectional one-to-one associations are now mapped with a single column on the owning side and a foreign key reference. You shouldn't need to change anything, however you may want to drop the column on the inverse side as it contains duplicate data.
> > -~----------~----~----~----~------~----~------~--~---
--
您收到此邮件是因为您订阅了 Google 网上论坛的“Grails联盟-GrailsUnion”论坛。
要向此网上论坛发帖,请发送电子邮件至 grail...@googlegroups.com。
要取消订阅此网上论坛,请发送电子邮件至 grailsunion...@googlegroups.com。
若有更多问题,请通过 http://groups.google.com/group/grailsunion?hl=zh-CN 访问此网上论坛。
--
您收到此邮件是因为您订阅了 Google 网上论坛的“Grails联盟-GrailsUnion”论坛。
要向此网上论坛发帖,请发送电子邮件至 grail...@googlegroups.com。
要取消订阅此网上论坛,请发送电子邮件至 grailsunion...@googlegroups.com。