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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user