Menu

#38 Use of foreign keys in UI

open
nobody
None
5
2004-10-05
2004-10-05
No

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();
}
}

Discussion

  • Ben Litchfield

    Ben Litchfield - 2004-10-05
     
  • Ben Litchfield

    Ben Litchfield - 2004-10-05
     
  • Ben Litchfield

    Ben Litchfield - 2004-10-05
     

Log in to post a comment.