Re: [Xdoclet-user] Add relation or persistent member accessor tothe public interface

2003-08-18 Thread Jean-philippe VIGNIEL
[EMAIL PROTECTED] wrote: I think I understand what you're asking, and the answer is "no" -- @ejb.persistence has nothing to do with putting methods into your remote/local interfaces. It is used to tell the container what column to map the attribute to. Here's an example: /** * @ejb.interface-

[Xdoclet-user] Add relation or persistent member accessor to the public interface

2003-08-14 Thread Jean-philippe VIGNIEL
Hi everybody I would like to add automaticaly all accessors of an entity bean to its local interface but i don't know how to do that. In fact i don't understand why it is not the default behavior of the xdoclet generation. Thanks for your help Jean-Philippe -

Re: [Xdoclet-user] Add relation or persistent member accessor tothe public interface

2003-08-14 Thread Jean-philippe VIGNIEL
that I know of. You have to tag the methods yourself. David Harkness Sony Pictures Digital Networks (310) 482-4756 -----Original Message- From: Jean-philippe VIGNIEL [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 5:50 AM To: [EMAIL PROTECTED] Subject: [Xdoclet-user] Add relation or persi

Re: [Xdoclet-user] What's the need of @ejb.ejb-ref

2003-08-14 Thread Jean-philippe VIGNIEL
Ticket Entity bean was a seperate class. -Original Message- From: Jean-philippe VIGNIEL [mailto:[EMAIL PROTECTED]] Sent: Wed 13/08/2003 08:01 To: [EMAIL PROTECTED] Cc: Subject: Re: [Xdoclet-user] What's the need of @ejb.ejb-ref Is your Ticket Entity bean a member of OrderTicket? What

Re: [Xdoclet-user] What's the need of @ejb.ejb-ref

2003-08-14 Thread Jean-philippe VIGNIEL
s how I use it. For example my OrderTicket Session bean has an ejb-ref tag so it can use the Ticket Entity bean. Tim -Original Message- From: Jean-philippe VIGNIEL [mailto:[EMAIL PROTECTED] Sent: Tue 12/08/2003 14:19 To: [EMAIL PROTECTED] Cc: Subject:[Xdoclet-user] W

Re: [Xdoclet-user] Add relation or persistent member accessor tothe public interface

2003-08-14 Thread Jean-philippe VIGNIEL
[EMAIL PROTECTED] wrote: On Wednesday 13 Aug 2003 07:57, Jean-philippe VIGNIEL wrote: Thanks for your answer. I think i've not correcltly explained what i want to do. I would like to add persistent members accessors of an entity bean to its interface. I've already tried t

[Xdoclet-user] What's the need of @ejb.ejb-ref

2003-08-14 Thread Jean-philippe VIGNIEL
Another question I read that there is a class tag called @ejb.ejb-ref which defines a reference between two EJBs. Shall we use it if a member of an ejb is another EJB? Could we have some problems by having a simple reference between two EJB like the following code. ClassBean extends SessionBea

Re: [Xdoclet-user] Name unicity

2003-08-01 Thread Jean-philippe VIGNIEL
ficult to manage. [EMAIL PROTECTED] wrote: If the name is defined as a PK I think you shouldn't have any problem... On Tue, 2003-07-29 at 03:46, Jean-philippe VIGNIEL wrote: What appens if two persons create the same obje

Re: [Xdoclet-user] Name unicity

2003-07-31 Thread Jean-philippe VIGNIEL
?exception after the call (at the end of the transaction i guess) of the create function which can be difficult to manage. [EMAIL PROTECTED] wrote: If the name is defined as a PK I think you shouldn't have any problem... On Tue, 2003-07-29 at 03:46, Jean-philippe VIGNIEL wr

Re: [Xdoclet-user] Name unicity

2003-07-29 Thread Jean-philippe VIGNIEL
AIL PROTECTED] wrote: If the name is defined as a PK I think you shouldn't have any problem... On Tue, 2003-07-29 at 03:46, Jean-philippe VIGNIEL wrote: What appens if two persons create the same object at the same time. With the default transaction mode, i think (but i can be wrong

Re: [Xdoclet-user] Name unicity

2003-07-29 Thread Jean-philippe VIGNIEL
(user) FROM User As user WHERE user.id=?1 OR user.email=?2" On Mon, 2003-07-28 at 07:16, Jean-philippe VIGNIEL wrote: Hi everybody I have to check that a name is unique before creating or updating this object. How can i do that without using a database constraint and without co

[Xdoclet-user] Name unicity

2003-07-28 Thread Jean-philippe VIGNIEL
Hi everybody I have to check that a name is unique before creating or updating this object. How can i do that without using a database constraint and without concurrency problem? The jboss pk-constraint tag set the constaints on the database, is there something to do the same thing managed by t

Re: [Xdoclet-user] Pb with *:1 relationship (Thanks)

2003-07-21 Thread Jean-philippe VIGNIEL
Mensaje citado por Jean-philippe VIGNIEL <[EMAIL PROTECTED]>: 1-n relation: /** @ejb.relation * name = "Source-Target" * role-name = "Source" * * target-ejb = "Target"

Re: [Xdoclet-user] Pb with *:1 relationship (Thanks)

2003-07-21 Thread Jean-philippe VIGNIEL
attribute would be used for each of the variations of relationships please? --- Thanks... Mick Knutson --- From: Jean-philippe VIGNIEL <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [Xdoclet-user] Pb with *:1 relationship (Thanks) Date: Fri,

Re: [Xdoclet-user] Pb with *:1 relationship (Thanks)

2003-07-18 Thread Jean-philippe VIGNIEL
Thanks very much for your help. Your solution is not very intuitive but It works:) To resume the thread for the next person who needs for a n-1 relation.:     1-1 relation:   /**       @ejb.relation    *     name = "Source-Target"    *     role-name = "Source"    *    *     target-ejb = "T

Re: [Xdoclet-user] Pb with *:1 relationship

2003-07-17 Thread Jean-philippe VIGNIEL
, 2003-07-17 at 13:27, Jean-philippe VIGNIEL wrote: Hi everybody I have to manage a n:1 relation ship between two entities, is it possible to generate the suitable ejb-jar by using the xdoclet ejb.relation tag? I've succeeded to specify a one to one relation but the only

[Xdoclet-user] Pb with *:1 relationship

2003-07-17 Thread Jean-philippe VIGNIEL
Hi everybody I have to manage a n:1 relation ship between two entities, is it possible to generate the suitable ejb-jar by using the xdoclet ejb.relation tag? I've succeeded to specify a one to one relation but the only way i found to have a n to 1 relation was to set by hand the source tag