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