[Xdoclet-user] Value Objects: Read olnly fields HOWTO?

2005-03-04 Thread Maik Hassel
Hello everybody, I have no problems automatically generating value objetcs with xdoclet, works fine. BUT now I need some fields to be only exposed via getter methods. The reason is that the value objetcs are exposed to the user via session beans, and only the session bean should be allowed to wr

[Xdoclet-user] Value objects and caching

2004-07-29 Thread Ulf Sahlin
Hello! I'm looking for a way to keep my VO cache consistent with my beans. I don't want to invalidate my entire cache when I apply changes to one bean. XDoclet generates my Value Objects, having relations to other Value Objects. I'm using lots of bi-directional aggregate relationships, so I need

[Xdoclet-user] value objects hasBeenSet function

2004-05-24 Thread Mark Stacey
Hi, I was just looking for a clarification of the xxxHasBeenSet methods that are generated for the EJB value objects. We wanted to perform specific functionality only if a certain field had been changed after coming back from the web tier, but it seems that this field will also have the hasBeenSe

[Xdoclet-user] value objects with bidirectional relationships

2004-03-15 Thread Marcus Beyer
Is there a way to have value objects with bidirectional relationships? I have some problems to interpret the patch talk here: http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-307 thanx! Marcus --- This SF.Net email

Re: [Xdoclet-user] Value Objects On Both Sides

2003-10-20 Thread Jose Gonzalez Gomez
James, If you have a bidirectional relationship between two EJBs you cannot have the same bidirectional relationship between their related value objects. In case you have this, XDoclet will always call the getXXXValue method in the related EJB to get the corresponding value object, so you

Re: [Xdoclet-user] Value Objects On Both Sides

2003-10-19 Thread guo yingshou
You can not use target-multiple here because your relationship is bi-directional. It is only used when in a uni-directional relationship and the one multiplicity side is blind. Just remove them and try to see what will be generated. It's a good habit to check the generated dd and you can find the p

[Xdoclet-user] Value Objects On Both Sides

2003-10-18 Thread James Ward
Hello XDoclet friends. I am having a problem with CMR and Value Objects. I would like to have value objects for both sides of the relationship, but it seems when I do so, I get a "Reentrant method call detected" error in JBoss. Here is how I have my beans' relationships setup: UserBean: /**

[Xdoclet-user] Value objects and primary key fields

2003-10-17 Thread Ivens Porto
Hi, I'm using xdoclet 1.2b3 to generate value objects to my entity beans, but I came to a situation that, although interesting, I cannot resolve regarding fields used as primary keys. I have a customer entity bean (presented here with only the declarations needed to describe the problem): /** *

[Xdoclet-user] Value-Objects relation

2003-08-20 Thread Manfred Braunwieser
Hello,  I am attempting to use XDoclet to generate two Entity Beans and the according value-objects. The problme is that I only can generate those EJB's with a unidirectional relation otherwise I get a problematic exception: javax.ejb.TransactionRolledbackLocalException I do not know what is it al

RE: [Xdoclet-user] Value Objects (and BMP Entities)

2003-07-27 Thread Harkness, David
abstract Integer getId ( ) ; public abstract void setId ( Integer id ) ; That should be all you need. David Harkness Sony Pictures Digital Networks (310) 482-4756 -Original Message- From: Bryce Fischer [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 6:54 PM To: [EMAIL PROTECTED

RE: [Xdoclet-user] Value Objects (and BMP Entities)

2003-07-25 Thread Bryce Fischer
ECTED] On Behalf Of Harkness, David > Sent: Friday, July 25, 2003 10:02 PM > To: [EMAIL PROTECTED] > Subject: RE: [Xdoclet-user] Value Objects (and BMP Entities) > > In your case you do not need to specify the pk-class. Instead, include > the class-level tag "@ejb.bean prim

[Xdoclet-user] Value Objects (and BMP Entities)

2003-07-25 Thread Bryce Fischer
Trying to generate a ValueObject from a BMP Entity Bean. The PK is a String, and I've specified @ejb.pk class = "java.lang.String". When it generates the Value Object, it insists on using the PK as if it was a custom PK class (pk.setGroupName(groupName)). I've included the source below with tags.

RE: [Xdoclet-user] Value Objects for one to one CMR composition

2003-03-27 Thread François Eric
Did anybody else have this problem? Its really blocking my development right now? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of François Eric Sent: March 25, 2003 12:05 PM To: Xdoclet Mailing List (E-mail) Subject: [Xdoclet-user] Value Objects for one

[Xdoclet-user] Value Objects for one to one CMR composition

2003-03-25 Thread François Eric
Hello,   I have recently switched from data-objects to value-objects (great feature!).  I have a problem though when trying to create a value-object for a one to one CMR composition.  The value-object that is generated is ok but the CMP object that is generated isn't (in my opinion).   My re

Re: [Xdoclet-user] Value Objects : What am I missing ?

2003-03-06 Thread Nathaniel Rahav
Folks, I found the error that was preventing the PersonUId from being set in my value object. I had declared the type to be an int instead of an Integer in one of my setters, and xdoclet instead of choking just skipped over it. Thanks for all your help. Nat

Re: [Xdoclet-user] Value Objects : What am I missing ?

2003-03-05 Thread Adam
c: <[EMAIL PROTECTED]> Sent: Wednesday, March 05, 2003 9:00 PM Subject: Re: [Xdoclet-user] Value Objects : What am I missing ? No, I'm sorry, scratch that. I'm still having the problem. My ValueObject does indeed have a getPersonUId and setPersonUId method, generated by xdoclet. Bu

Re: [Xdoclet-user] Value Objects : What am I missing ?

2003-03-05 Thread Nathaniel Rahav
my object ("getPersonUId()") > > thanx tho > > Nat > > > ...... > .From: "Adam" <[EMAIL PROTECTED]> > .To: <[EMAIL PROTECTED]> > .Subject: Re: [Xdoclet-user] Value Objects : What am I missing ? > .Date: Tue, 4 Mar 20

Re: [Xdoclet-user] Value Objects : What am I missing ?

2003-03-05 Thread Nathaniel Rahav
.. .From: "Adam" <[EMAIL PROTECTED]> .To: <[EMAIL PROTECTED]> .Subject: Re: [Xdoclet-user] Value Objects : What am I missing ? .Date: Tue, 4 Mar 2003 03:25:45 -0600 .Reply-To: [EMAIL PROTECTED] . .Did you include a setXXX method for your UID field in the Bean cla

Re: [Xdoclet-user] Value Objects : What am I missing ?

2003-03-04 Thread Adam
first set out to create read-only beans. - Original Message - From: "Nathaniel Rahav" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 04, 2003 1:28 AM Subject: [Xdoclet-user] Value Objects : What am I missing ? hello, I am encountering a funny situ

[Xdoclet-user] Value Objects : What am I missing ?

2003-03-03 Thread Nathaniel Rahav
hello, I am encountering a funny situation, I dont know if I am doing something wrong or if this is how the value object pattern works: When I call MyBeanLocal.getValueObject() I get a value object with all the CMP fields populated except my UID field! Therefore I cannot do any further loo

Re: [Xdoclet-user] Value objects

2003-01-16 Thread Marcus Brito
Saripalli, Raju wrote: With version 1.2 of xdoclet the tags have changed. Example below: @ejb:remote --> @ejb.remote Both are good. We changed notation because Javadoc 1.4 is quite noisy with custom tags. Anyway, the xjavadoc (the xdoclet's doc parser) can recognize both @tag:name and @

RE: [Xdoclet-user] Value objects

2003-01-15 Thread Saripalli, Raju
t; as opposed to "ejb:remote", would XDoclet still put the information into the template ?   Thanks,   Raju     -Original Message-From: Brian McSweeney [mailto:[EMAIL PROTECTED]]Sent: Wednesday, January 15, 2003 1:09 PMTo: xdocletSubject: [Xdoclet-user] Value o

[Xdoclet-user] Value objects

2003-01-15 Thread Brian McSweeney
Hi,   We're trying to get XDoclet to build slightly customised value objects without getting into writing our own, and we've got a bit stuck.   What we have is an entity bean A related using CMR to another entity bean B. The primary key of B is a URL, so the CMR relationship uses this URL to

Re: [Xdoclet-user] Value Objects & CMR

2002-12-15 Thread Dylan van Iersel
I have found the 'bug'. Didn't look too carefully apparantely. The abstract value-object getters and setters are implemented in the generated CMP classes, so when not using the subtask, you have to provide for the VO getter/setter yourself. > > When did you get that error? is it while running t

Re: [Xdoclet-user] Value Objects & CMR

2002-12-15 Thread Herve Tchepannou
When did you get that error? is it while running the test cases or in the web app? can you send the stack trace please. On Sat, 2002-12-14 at 17:52, Dylan van Iersel wrote: > > Hi all, > > >From the xpetstore examples, I gather that I can have XDoclet generate a > Value Object and define an ab

RE: [Xdoclet-user] Value-Objects & CMR: another

2002-12-14 Thread Aslak Hellesøy
; [mailto:[EMAIL PROTECTED]]On Behalf Of Dylan van > Iersel > Sent: 15. desember 2002 00:07 > To: xdoclet > Subject: [Xdoclet-user] Value-Objects & CMR: another > > > > Hi all, > > I am using XDoclet 1.2b2. The documentation on "dataobject" so far states &g

Re: [Xdoclet-user] Value-Objects & CMR: another

2002-12-14 Thread Matt Raible
I am interested in this same topic and I am using the task to generate POJO to be used by hibernate. Since it appears that VO supports relationships b/w other VOs, is it possible that the task will pick up these same relationships when generating forms? Thanks, Matt On Saturday, December

[Xdoclet-user] Value-Objects & CMR: another

2002-12-14 Thread Dylan van Iersel
Hi all, I am using XDoclet 1.2b2. The documentation on "dataobject" so far states "Creates "data objects" for Entity EJBs. This task is currently being deprecated in favour of Value Object which is more powerful in terms of relationships (1-1, 1-n and n-m)." Can somebody explain to me in what wa

[Xdoclet-user] Value Objects & CMR

2002-12-14 Thread Dylan van Iersel
Hi all, >From the xpetstore examples, I gather that I can have XDoclet generate a Value Object and define an abstract getter/setter to access it. For example, from ItemEJB: * @ejb.value-object * name="Item" * match="*" /** * @ejb.interface-method * @ejb.transaction *

[Xdoclet-user] Value Objects Documentation and VO Bug

2002-11-12 Thread Meyer-Willner, Bernhard
Hi Marcus (and everybody else), thanks for your VO documentation post. I like it, though I think documentation for both uni- and bidirectional relationships should be included as well as documentation on one-to-one relationships. Besides, I believe there are some more attributes you left out proba

RE: [Xdoclet-user] Value Objects HOWTO

2002-11-11 Thread Aslak Hellesøy
02 02:32 > To: Lista XDoclet-User > Subject: [Xdoclet-user] Value Objects HOWTO > > > Hello, folks. > > I've uploaded a small howto about how to use value objects in xdoclet. > This is always a hot topic in this list, so I hope this doc can help you > a but. > > Be

[Xdoclet-user] Value Objects HOWTO

2002-11-11 Thread Marcus Brito
Hello, folks. I've uploaded a small howto about how to use value objects in xdoclet. This is always a hot topic in this list, so I hope this doc can help you a but. Bear in mind that this is an early draft. I would be glad to receive any comments, suggestions, additions, criticism... feel free to

Re: [Xdoclet-user] Value objects in entity beans considered deprecated

2002-10-02 Thread Dmitri Colebatch
David, yeah, I see your point. again I'm not 100% sure, but I think that value objects do (or at least there's no technical reason why they couldn't) support the requirement you put for pulling part of the cmr's data. However, as you obviously prefer having the value object creation done in a S

Re: [Xdoclet-user] Value objects in entity beans considered deprecated

2002-10-02 Thread Vincent Harcq
Hi, I agree with Mattias that when an entity bean has been developped, he should not be touched again to create new value objects. The developers of the business logic should come, see the entity and create new VO for their own uses. But I also agree with Dmitri that, to summarise, "wtf", it i

RE: [Xdoclet-user] Value objects in entity beans considered deprecated

2002-10-01 Thread Ara abrahamian
> no, I did not get *any* feedback - I ain't got *no* feedback. :-) See below. > > Now, what's the remedy? > > > > Do not generate VOs in the entity bean. The right point for > > VO generation is > > the session facade of the component that executes on behalf > > of the client to > > support its

Re: [Xdoclet-user] Value objects in entity beans considered deprecated

2002-10-01 Thread David Ward
Dmitri, To add my feedback to this, the difference is really in the design. For small projects, it's fine to have the entity create the value objects. However, on medium to large projects, the design doesn't scale. This is because entities are supposed to be "domain objects" - not necessaril

Re: [Xdoclet-user] Value objects in entity beans considered deprecated

2002-10-01 Thread Dmitri Colebatch
Matthias, > no, I did not get *any* feedback - I ain't got *no* feedback. :-) [snip] > > I just had an interesting discussion on the uml2ejb-user > > mailing list and > > thought it might be interesting what the XDoclet people think > > about this > > point. > > > > Opinions or ideas? I'm prob

RE: [Xdoclet-user] Value objects in entity beans considered deprecated

2002-10-01 Thread Matthias Bohlen
Hi Chris, no, I did not get *any* feedback - I ain't got *no* feedback. :-) Cheers... Matthias > -Original Message- > From: Shaw, Chris [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 01, 2002 2:10 PM > To: 'Matthias Bohlen' > Subject: RE: [Xdoclet

[Xdoclet-user] Value objects in entity beans considered deprecated

2002-09-27 Thread Matthias Bohlen
Hi, I just had an interesting discussion on the uml2ejb-user mailing list and thought it might be interesting what the XDoclet people think about this point. Opinions or ideas? Matthias Matthias Bohlen Consulting that helps project teams to succeed... Web: http://www.mbohlen.de/ Snail:

Re: [Xdoclet-user] Value Objects which inherit problem

2002-09-27 Thread Andreas Leitner
On Fri, Sep 27, 2002 at 12:14:18PM +0200, Andreas Leitner wrote: > Hi, > > I am having problems with Value Objects. I have a set of VOs which inherit from >self-written classes (done via the 'extends' attribute). Now the super class really >needs to have a chance to initialize itself, but the g

[Xdoclet-user] Value Objects which inherit problem

2002-09-27 Thread Andreas Leitner
Hi, I am having problems with Value Objects. I have a set of VOs which inherit from self-written classes (done via the 'extends' attribute). Now the super class really needs to have a chance to initialize itself, but the generated value objects do not call any constructors of the super class (

[Xdoclet-user] Value Objects, Data Objects, Data Transfer Objects, I'm Lost

2002-07-13 Thread Ryan Marsh
Ok, I've gone and utterly confused myself here. I believe I understand the logical differences between those mentioned in the Subject of this message. My question is, which is best practice to use in xdoclet? @ejb:value-object looks cool but documentation is sparse. -ryan -- Humans are the unfor

RE: [Xdoclet-user] value-objects wrong PK usage

2002-04-29 Thread Alex Loubyansky
JBoss. Sorry, guys. SORRY, MARIUS. alex > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > Alex Loubyansky > Sent: Monday, April 29, 2002 11:24 AM > To: 'Marius Kotsbak' > Cc: 'Ingo Bruell'; 'xdocl

Re: Re[2]: [Xdoclet-user] value-objects wrong PK usage

2002-04-29 Thread Vincent Harcq
> But i wonder why most the time autonumber fields are used as pk. Could > someone explane (it should be OT but i am interested in) > Why not ? OK that is simple answer Why would you want to have a complex PK ? OK also not very fair The main reason I see is the possibility you have after to chan

AW: Re[2]: [Xdoclet-user] value-objects wrong PK usage

2002-04-29 Thread bwillner
ww.theserverside.com, Patterns section rsp. EJB Design Patterns book) for more info. cu, Bernie -Ursprungliche Nachricht- Von: Ingo Bruell [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 29. April 2002 10:33 An: [EMAIL PROTECTED] Betreff: Re[2]: [Xdoclet-user] value-objects wrong PK usage

Re[2]: [Xdoclet-user] value-objects wrong PK usage

2002-04-29 Thread Ingo Bruell
Hi, oops, my reply was going directly to Marius. MK> Alex Loubyansky wrote: >> What do you mean "complex PKs don't work very well with jboss3.x now"? >> MK> http://main.jboss.org/forums/thread.jsp?forum=46&thread=9931 MK> So i stopped using it. I don't know if it is just the table-creating M

RE: [Xdoclet-user] value-objects wrong PK usage

2002-04-29 Thread Alex Loubyansky
L PROTECTED] > Cc: 'Ingo Bruell'; 'xdoclet-user' > Subject: Re: [Xdoclet-user] value-objects wrong PK usage > > > Alex Loubyansky wrote: > > > What do you mean "complex PKs don't work very well with > jboss3.x now"? > > > http://main.jbo

Re: [Xdoclet-user] value-objects wrong PK usage

2002-04-26 Thread Emerson Cargnin - MSA
I solved the previous problem (didn't find the interfaces/homes when in javadoc) but i had to make the following modification : sourcepath="${java.dir};${log4j.path}" to sourcepath="${java.dir};${log4j.path};${generated.java.dir}" and have to run ant two times (at first gives me the same previ

Re: [Xdoclet-user] value-objects wrong PK usage

2002-04-26 Thread Marius Kotsbak
t; > >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED]]On Behalf Of >>Marius Kotsbak >>Sent: Friday, April 26, 2002 5:32 PM >>To: Ingo Bruell >>Cc: xdoclet-user >>Subject: Re: [Xdoclet-user] value-objects wrong

Re: [Xdoclet-user] value-objects wrong PK usage

2002-04-26 Thread Ingo Bruell
I found the error: in class PkTagsHandler, method pkfieldListFrom is a statement: "ret = name + "." + attr;" it should be: "ret += name + "." + attr;" Ingo Bruell --- <[EMAIL PROTECTED]> Oldenburg PGP-Fingerprint: 9DD0 1776 DF4D 5B16 A532 C2A1 4701 EEA2 Germany PGP-Public-Key available at p

RE: [Xdoclet-user] value-objects wrong PK usage

2002-04-26 Thread Alex Loubyansky
xdoclet-user > Subject: Re: [Xdoclet-user] value-objects wrong PK usage > > > I have also seen this. Have also reported it as a bug, but I > don't think > anyone has commented it. > > Another thing to remember is that complex PKs does't work > very wel

Re: [Xdoclet-user] value-objects wrong PK usage

2002-04-26 Thread Marius Kotsbak
I have also seen this. Have also reported it as a bug, but I don't think anyone has commented it. Another thing to remember is that complex PKs does't work very well with jboss 3.x now, if you use it. Ingo Bruell wrote: > Hi, > > i am using now value-objects, to get my non persistent attri

[Xdoclet-user] value-objects wrong PK usage

2002-04-26 Thread Ingo Bruell
Hi, i am using now value-objects, to get my non persistent attributes into a "DataObject". Most auf my beans have komplex Primary Keys, that means that they are composed with two or more attributes. In a ValueObject a PrimaryKey is only created withe the last PrimaryKey attribute and so it could

Re: [Xdoclet-user] Value Objects & bidirectional relationship

2002-04-05 Thread Marcus Brito
Em Qua, 2002-04-03 às 17:17, Steve Knight escreveu: > Also, Vincent or Marcus, do you have any suggestions on what would be the simplest >way to implement a solution to my earlier problem...excluding a cmr field from >certain value objects? Just fixed it. I'm submitting the patch to sourceforg

Re: [Xdoclet-user] Value Objects & bidirectional relationship

2002-04-03 Thread Steve Knight
arcus Brito" <[EMAIL PROTECTED]> To: "Lista XDoclet-User" <[EMAIL PROTECTED]> Sent: Wednesday, April 03, 2002 3:32 PM Subject: Re: [Xdoclet-user] Value Objects & bidirectional relationship ___ Xdoclet-user mailing list [E

Re: [Xdoclet-user] Value Objects & bidirectional relationship

2002-04-03 Thread Marcus Brito
Em Qua, 2002-04-03 às 17:17, Steve Knight escreveu: > Hey guys, > I have more thoughts on Value Objects. > What if I try and use Value Objects and two entities have a bidirectional >relationship? Me thinks you will get into a circular reference problem, no? Just >looking at the code I can see

[Xdoclet-user] Value Objects & bidirectional relationship

2002-04-03 Thread Steve Knight
Hey guys, I have more thoughts on Value Objects. What if I try and use Value Objects and two entities have a bidirectional relationship?  Me thinks you will get into a circular reference problem, no?  Just looking at the code I can see a few places where this might happen (the no args constru