tbls wrote:
1. For temporal problem, I recompiled beta9 sources with following code in EntityPOJOClass.java :
line 315 :
... else if ("timestamp".equals(typeName) || "java.sql.Timestamp".equals(typeName) || "java.util.Calendar".equals(typeName)) {
buildTemporalAnnotation( annotations, "TIMESTAMP" ); //..the default so don't generate
} ...
which is quit ugly, I agree but I works, so fine.
I was not aware JPA temporal supported calendar?
Put a patch in jira.
Quote:
2. For the manytomany problem, it seems that indicating wich table is reverse would work. But I don't know how to specify this.
In reveng.xml property "invert" for many-to-one doesn't work.
Quote:
And implementing custom strategy doesn't seem to give access to any helpfull method for such an information.
i'm a bit lost... any idea would be great
From rev.eng.strategy:
/** is the collection inverse or not ? */
public boolean isForeignKeyCollectionInverse(String name, TableIdentifier foreignKeyTable, List columns, TableIdentifier foreignKeyReferencedTable, List referencedColumns);
/** is the collection lazy or not ? */
public boolean isForeignKeyCollectionLazy(String name, TableIdentifier foreignKeyTable, List columns, TableIdentifier foreignKeyReferencedTable, List referencedColumns);
Doesn't that help ?