Hi,

>
> Hi
>
> We are trying to use CMR in JBoss here, but are unsuccessful in our
> attempts. Basically, as an example, in a User-Address relationship we have
> the foreign key to Address in User. Thus we create a CMR in this and it
> creates the 2 tables with only the foreign key to Address in the
> User table.
> But, when you try to create a User and and Address using the
> proper methods,
> the foreign key column is not populated. And furthermore, when you try to
> get the AddressLocal from the UserLocal, it is null.
>
> My question is: is CMR working correctly in JBoss 3?

Yes. I had the same problem. I was relying on the default setups which do
not work. They deploy ok, but do not generate the correct tables and SQL
statements and thus produce exactly what you are describing. I took one of
the JBoss Unit Tests and tryed that and it seams to be ok. The only
different is that they have a jboss.xml and jbosscmp-jdbc.xml. I guess that
must be the solution...

cheers,
        dirk




_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to