-
1. Re: Progress on complex primary keys using one or more cmr-f
dsundstrom Feb 28, 2002 2:07 PM (in response to mcauleyt)No progress here. This change is require some refactoring in the data structures of JBossCMP. This feature is planned for after plugable autonumber generator factories, and optimistic locking strategies.
I suggest that people always use auto-number primary keys. The if you want a dependent object just use cascade delete. -
2. Re: Progress on complex primary keys using one or more cmr-f
mcauleyt Mar 1, 2002 10:14 AM (in response to mcauleyt)In relation to the problem, is this possible in JBoss? If it was, then it would solve my problem very neatly.
--------
Mapping to a Database Column
WebLogic Server supports mapping a database column to a cmp-field and a cmr-field concurrently. The cmp-field is read-only in this case. If the cmp-field is a primary key field, specify that the value for the field be set when the create() method is invoked by using the setXXX method for the cmp-field.
--------
http://edocs.bea.com/wls/docs61/ejb/cmp.html#1088204 -
3. Re: Progress on complex primary keys using one or more cmr-f
dsundstrom Mar 1, 2002 12:30 PM (in response to mcauleyt)> In relation to the problem, is this possible in
> JBoss?
It is possible but not implemented.
> If it was, then it would solve my problem very
> neatly.
>
> --------
> Mapping to a Database Column
>
> WebLogic Server supports mapping a database column to
> a cmp-field and a cmr-field concurrently. The
> cmp-field is read-only in this case. If the cmp-field
> is a primary key field, specify that the value for
> the field be set when the create() method is invoked
> by using the setXXX method for the cmp-field.
> --------
> http://edocs.bea.com/wls/docs61/ejb/cmp.html#1088204
I am aware of Weblogic's mapping. I plan on supporting a direct mapping from cmp fields to cmr fields, which is a little different from what they are doing. In my case the cmp-field will be read/write. -
4. Re: Progress on complex primary keys using one or more cmr-f
mkotsbak Apr 17, 2002 4:57 PM (in response to mcauleyt)Is this bug reported, so it is not forgotten?
-
5. Re: Progress on complex primary keys using one or more cmr-f
dsundstrom Apr 18, 2002 1:11 PM (in response to mcauleyt)It is not a bug, it is a feature request. I have it on the JBossCMP todo list. It is listed as somthing like insert/delete timings.
-
6. Re: Progress on complex primary keys using one or more cmr-f
mkotsbak Apr 18, 2002 3:45 PM (in response to mcauleyt)> It is not a bug, it is a feature request. I have it
> on the JBossCMP todo list. It is listed as somthing
> like insert/delete timings.
Then you say that it isn't required by sun's J2EE-standard? If it is, it should be a bug! If not, it is a request of a jboss-extra feature. -
7. Re: Progress on complex primary keys using one or more cmr-f
dsundstrom Apr 18, 2002 4:54 PM (in response to mcauleyt)> Then you say that it isn't required by sun's
> J2EE-standard?
Right. The spec acutally makes this type of mapping diffcult for me to code.
> If it is, it should be a bug! If not, it is
> a request of a jboss-extra feature.
Right, it is a request of a jboss-extra feature.