新建一个Generic?Exporter,具体添加的属性如下:?
File Pattern : messages_zh_CN.properties?
For each : entity?
herbernatetool.util.toolclass: org.hibernate.eclipse.launch.SeamUtil?
Output directory:/product2/src/model?
Template name:messages_en.ftl?
在seam-gen目录下新建一个文件:messages_en.ftl,文件内容如下:?
<#foreach entity in c2j.getPOJOIterator(cfg.classMappings)>?
########## for ${entity.shortName} ##########?
<#assign lowerShortName = util.lower(entity.shortName)>?
${lowerShortName}=${entity.shortName}?
<#foreach field in entity.getAllPropertiesIterator()>?
<#assign upperFieldName = util.upper(field.name)>?
${lowerShortName}.${field.name}=${upperFieldName}?
</#foreach>?
</#foreach>?
详细解决方案
seam-gen 增多messages_zh_CN.properties
热度:903 发布时间:2012-09-02 21:00:34.0
相关解决方案
- seam generate entities失误
- 88分求 JBOSS SEAM 操作数据库,保留数据
- jboss seam 多对多配置,主键序列生成,错误: Could not synchronize database state with session
- jboss seam 屏蔽数据库字段id的输入
- 88分求 JBOSS SEAM 操作数据库,保存数据,该怎么解决
- jboss-seam-registration.ear没有成功
- seam generate entities出错,该怎么解决
- 属性文件(*.properties)中如何显示中文?
- 如何配置log4j.properties 才能将日志信息记录到数据库中?!!!
- CSS shorthand properties(CSS 缩写本质)
- CSS Layout Properties 格局属性
- Configuration -Properties 资料
- Seam Reference v2.0.2.GA 第34章中文翻译――公布到Weblogic
- Extjs4新发现02_event跟method的区别配置项(Config Options)和属性(Public Properties)的区别
- web使用中修改config.properties/xml文件,自动部署
- 开始关切JSF/Seam
- seam-gen 增多messages_zh_CN.properties
- 让JSF,seam,richface的旋钮换成图片(只要是按钮都可以)
- Seam: 替 JSF 量身定做的应用程序框架
- java 解析 properties-运用 ResourceBundle
- Myeclipse “properties”选项下边"Text file encoding"选项的other选项不能手动录入编码类型
- Myeclipse “properties”选项下部"Text file encoding"选项的other选项不能手动录入编码类型
- Eclipse/Lomboz 装 Properties Editor 插件为什么没用?该如何处理
- 请教Hibernate中怎么导入一个jdbc.properties
- struts 老是说“LocalStrings_zh.properties Not Found ”,该怎么解决
- log4j.properties,该怎么处理
- ApplicationResources.properties 文件出错,麻烦高手看看解决方法
- 请教 我用 File file = new File("\\db.properties");来找在WEB-INF里的db.properties 可以吗
- struts中为啥*properties
- 配置了log4j.properties,控制台没有显示日志信息解决办法