RE: [JBoss-user] Testing EJBs with JUnit

2002-07-17 Thread Robertson, Jason
Also, take a look at Cactus, it's a JUnit extension for doing server-side testing which includes testing EJBs. http://jakarta.apache.org/cactus/index.html Jason -Original Message- From: Emerson Cargnin - SICREDI Serviços [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 3:25 PM

RE: [JBoss-user] problems with finders returning java.util.Set

2002-07-15 Thread Robertson, Jason
A finder method that returns multiple entity objects can only return a java.util.Collection. If you want to guarantee no duplicates are returned, you must use the DISTINCT keyword. A select method, however, can return java.util.Collection or java.util.Set. If you specify java.util.Set then the DI

RE: [JBoss-user] CMP 2.0 - CMR fields are NULL

2002-04-22 Thread Robertson, Jason
One issue I can see is that you should be returning null in your ejbCreate methods, although I doubt that's causing the cmr update problem. You say you didn't declare the CMR fields in your ejb-jar.xml? If you didn't declare them, then how will the container know about them? Not sure what you me

RE: [JBoss-user] duplicate columns created

2002-03-25 Thread Robertson, Jason
ues you'd have to do another method call. Jason -Original Message- From: David Ward [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 3:12 PM To: Robertson, Jason Cc: [EMAIL PROTECTED] Subject: Re: [JBoss-user] duplicate columns created Will the getGroupKey() method still work

RE: [JBoss-user] duplicate columns created

2002-03-25 Thread Robertson, Jason
At first glance it seems you have a cmp field named groupKey and a cmr field named groupKey, both mapping to GRP_KEY. You don't need to define a cmp field for the key when you have a relationship, so remove your definition of groupKey as a cmp field from both your ejb-jar.xml and jbosscmp-jdbc.xml

RE: [JBoss-user] CMP2.0 Create Problem

2002-02-28 Thread Robertson, Jason
Ok, I didn't realize I had to do that myself. Was hoping to use the DB. Thanks for the quick responses. Jason -Original Message- From: Dain Sundstrom [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 3:08 PM To: Robertson, Jason Cc: JBoss User (E-mail) Subject: Re: [

RE: [JBoss-user] CMP2.0 Create Problem

2002-02-28 Thread Robertson, Jason
From: Dain Sundstrom [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 2:18 PM To: Robertson, Jason Cc: JBoss User (E-mail) Subject: Re: [JBoss-user] CMP2.0 Create Problem You can't use database autonumber columns, and you can't have not-null foreign keys. Both of these wi

[JBoss-user] CMP2.0 Create Problem

2002-02-28 Thread Robertson, Jason
jboss3.0.0beta, jdk1.3.1_02, MySQL Two questions: 1. I understand that for CMR fields you set them in ejbPostCreate, but what if your table (that already exists) has these fields marked as "NOT NULL"? The initial INSERT INTO fails since it has that field as NULL and it never gets to ejbPostCreat

RE: [JBoss-user] CMP2.0 Foreign Key (?) Problem

2002-02-21 Thread Robertson, Jason
x27;s only the exact description of how I should be formatting the config file. Sigh... Thanks for kicking me in the right direction, everything works wonderfully now. Jason -Original Message- From: Dain Sundstrom [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 3:48 PM To: Robert

[JBoss-user] CMP2.0 Foreign Key (?) Problem

2002-02-21 Thread Robertson, Jason
I have two prebuilt tables that look like this: mysql> select * from organizationtype; +---+---+ | name | description | +---+---+ | type1 | orgtype-desc1 | | type2 | orgtype-desc2 | +---+---+ 2 rows in set (0.00 sec) mysql> select * from role; +

[JBoss-user] CMP2.0 Uni-directional Relationship problem

2002-02-21 Thread Robertson, Jason
I have what I think is a uni-directional relationship (RoleEJB->OrganizationTypeEJB), but when the SQL code is generated for OrganizationTypeEJB it includes an unexpected column "RoleEJB_organizationType" that appears to be a foreign key back to the RoleEJB. For example: ...JDBCCreateEntityComman