Default value for defaultOrder in @Tab
Automatic frontend engine for Java
Brought to you by:
javierpaniza
When defaultOrder is not specified in @Tab no "order by" is included in the SELECT. This is very annoying with some databases whose order in not consistent and can changed from time to time, for example when a record is modified. It means that we always have to write conditions like this:
@Tab(defaultOrder="${oid} asc")
Just to achieve a consistent order in the objects. OpenXava could generated automatically these defaultOrders, by @Id properties for example, to save programmers some work (or to have a better behavior by default).
Diff: