Discussion:
[Middlegen-user] jboss key field problem
Brent Craig
2002-07-24 17:57:03 UTC
Permalink
When using the fkcmp="false" what changes are made to the jboss:relation tag
for the descriptor fields to not have
the key fields?

thanks


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
Aslak Hellesøy
2002-07-24 23:34:04 UTC
Permalink
It's not quite what you seem to be thinking... With fkcmp="false" you won't
get

* @ejb.persistence column-name="PERSON_ID_FK"
* @ejb.interface-method view-type="local"

on the getBlaBla methods that correspond to foreign keys. In other words,
these fields won't be treated as CMP.
You'd typically use fkcmp="false" to circumvent a bug in JBoss which
prohibits a column to be part of a CMR and a CMP at the same time (or at
least so I have been told).

No changes are made to the @jboss.relation tags. I'm not sure if this
answers your question. Are there any JBoss users (I'm not) who understands
Brent's question better than me?

Aslak
-----Original Message-----
Craig
Sent: 24. juli 2002 21:56
Subject: [Middlegen-user] jboss key field problem
When using the fkcmp="false" what changes are made to the
jboss:relation tag
for the descriptor fields to not have
the key fields?
thanks
_________________________________________________________________
http://photos.msn.com/support/worldwide.aspx
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
M-Leander Reimer
2002-07-25 05:03:02 UTC
Permalink
Hi Bent,

under JBoss you have to use this fkcmp=false setting, to avoid that
JBoss tries to generates a table with a duplicate foreign key column,
one for CMP and one for CMR.

As Aslak said, this has no influence on the relations. They work fine
(at least they do for me).

The only small downside is that you can't have compound primaray keys
with on of the CMR columns, like you would perhaps do in a n:m relation
table.

Leander
Post by Brent Craig
When using the fkcmp="false" what changes are made to the jboss:relation tag
for the descriptor fields to not have
the key fields?
thanks
_________________________________________________________________
http://photos.msn.com/support/worldwide.aspx
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Loading...