Re: [JBoss-user] CMR exception (bug?)

2003-06-26 Thread Louis Leung
Also, the database schema and mapping in jbosscmp-jdbc.xml are congruent. I've included both the sql for the database schema and the jbosscmp-jdbc.xml. Louis Leung wrote: I'm trying to run PurchaseOrder with 2 Local Enitities PurchaseOrder LineItems, with a 1:N relationship between them.

Re: [JBoss-user] CMR exception (bug?)

2003-06-25 Thread Alexey Loubyansky
Hello Louis, the exception is thrown from create method. It is the result of checking whether the instance already exists. It selects primary key columns. Not foreign key. Does JBossCMP create tables in the db? Check the primary key configuration. alex Wednesday, June 25, 2003, 2:26:32 AM,

Re[2]: [JBoss-user] CMR exception (bug?)

2003-06-25 Thread Alexey Loubyansky
Hello Louis, you mean foreign key field mapped to primary key? yes, it is supported. Make sure the database schema and mapping in jbosscmp-jdbc.xml are congruent. alex Wednesday, June 25, 2003, 8:48:42 PM, Louis Leung wrote: LL Thanks Alex for your help. The tables are not created by

Re: [JBoss-user] CMR exception (bug?)

2003-06-25 Thread Louis Leung
I'm trying to run PurchaseOrder with 2 Local Enitities PurchaseOrder LineItems, with a 1:N relationship between them. LineItem Entity has a CMP field (masterOrder_orderId) which is part of primary key and is also maps the masterOrder relationship with PurchaseOrder. Alexey Loubyansky wrote:

[JBoss-user] CMR exception (bug?)

2003-06-24 Thread Louis Leung
Hi all, My application has a 1 to many CMR (i.e. one being a purchase order , and many being line items). I don't think i've specified the column mapping for this relationship wrong. JBoss should be firing Select MASTERORDER ... sql when retreiving info about this relation. But instead, it

[JBoss-user] CMR exception

2002-07-12 Thread Ionel Gardais
Hi, I'm trying to access the datas of a CMR-loaded EJB. An employee have a CMR field called organisme which is linked to an organismeBean. The multiplicity is declared as Many on the Employee side and One on the Organisme side. When accessing the organisme datas from the employee bean, I do

[JBoss-user] CMR exception [ADD]

2002-07-12 Thread Ionel Gardais
the variable loc is an instance of employeeLocalObject returned by a findByXXX() on the employeeHome. Ionel Gardais wrote: snip organismeLocal org = loc.getOrganisme(); String name = org.getName(); ... /snip --- This sf.net