I've made some changes in order to support foreign keys
and I've tested with 2 different databases (one is a
modified airline version without composite keys). The
code still has certain caveats:
(1) Modification of struts UI to support entry of foreign
keys.
(2) Only tested with useVO, not without.
(3) Did not evaluate impact on cmp20 case
I also didn't find a good way to access the other end of
a one-to-many relationship, so currently the velocity
code looks like
${fk.foreignTableSqlName}
Persistence.set${fk.localTable}s(hs);
which needs improvement.
I will try to attach a patch file to the current issue, but
don't know how to do it yet.
Feedback would be very appreciated.
------------------------------------
Comment by Andreas Kemkes [12/Mar/04 04:48 PM] [
Permlink ]
This is an updated version and replacement of the
previous version.
-----------------------------------------
Comment by Andreas Kemkes [12/Mar/04 09:50 PM] [
Permlink ]
This patch corrects some unnecessary code that was
generated if there were no foreign keys in a class.
It also adds a try block around the hibernate commands.
try {
...
} finally {
if (!tx.wasCommitted()) {
tx.rollback();
}
}
Log in to post a comment.