[jboss-user] [JBoss Seam] - Suggestion about seam-gen
limousyf
do-not-reply at jboss.com
Wed Sep 12 07:20:31 EDT 2007
I don't know if I can make this modification by myself so I ask here.
I want my entities to be generated with
| implements Comparable<EntityName>
|
with a very simple comparator, something like this:
| @Transient
| public int compareTo(EntityName o) {
| return this.getEntityNameId() - o.getEntityNameId();
| }
|
The aim is to sort the OneToMany from the database without making anonymous comparators in the Home class.
Is it possible to change the "template" for the generated Entity classes ?
I'm using seam 1.2.1 with jboss AS 4.0.5
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083375#4083375
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083375
More information about the jboss-user
mailing list