[jboss-user] [JBoss Seam] - package names used by seam-gen

dan.j.allen do-not-reply at jboss.com
Fri Oct 5 18:34:44 EDT 2007


There was a change in seam-gen starting with Seam 2.0.0.CR2 regarding how the generated classes are organized when generate-entities is executed.

Old way:

src/model/com/domain/projectname/model/EntityName.java
src/action/com/domain/projectname/model/EntityNameHome.java
src/action/com/domain/projectname/model/EntityNameList.java

New way:

src/model/com/domain/projectname/model/EntityName.java
src/action/com/domain/projectname/action/EntityNameHome.java
src/action/com/domain/projectname/action/EntityNameList.java

Home and Query objects are "action" components, not "model" components and are therefore placed in the action package. This makes the result of generate-entities consistent with the result of new-entity.

Remember, model classes are kept separate because they cannot be hot reloaded.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092219#4092219

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092219



More information about the jboss-user mailing list