There is currently no way to fetch the foreign keys directly. Look for this in JBoss 4.0 (when I get to coding it).
I can't wait to see JBoss 4.0 coming out ;)
By the way, what will be in JBoss 4.0, is it supposed to support J2EE 1.4 ?
> By the way, what will be in JBoss 4.0, is it supposed
> to support J2EE 1.4 ?
All sorts of stuff will be in 4.0 (atleast that's the plan), but not much of it has been written yet. JBoss 4.0 is targeted to support EJB 2.1, but I don't know what J2EE version that will match up with.
I have the same problem here...
But this is a problem of xdoclet and not jboss !
programming without xdoclet you can use all java.lang.* -types as primary-key, even with relations, no problem.
But when you use xdoclet, it creates even for these simple-types always a seperated xxxPk.class.
I didn't find an option to avoid this :-(
Read xdoclet docs carefully. To generate primary key of a simple type: