Hey ltcmelo, Relations depend on your Server, too. Maybe the ejb-jar.xml is correct and you forget something your application server needs. Which server do you use? And maybe you post parts of your code, so we can see mistakes.
Smile, Karsten -----Urspr�ngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von beginner Gesendet: Sonntag, 18. April 2004 01:07 An: [EMAIL PROTECTED] Betreff: [Xdoclet-user] Cannot generate unidirection 1..N relations? Why? Hi, i'm a beginner in xdoclet, so my question is really simple, but... I got two CMPs that are mapped one-to-one on my database tables. -Table Company has COMPANY_ID as its PK (does NOT reference table Store) -Table Store has STORE_ID as it's PK and COMPANY_ID as it's FK The relationship is the following - 1 company has 1..N stores - 1 store always belong to 1 company In my StoreBean i have the following method - public CompanyLocal getCompany() In my CompanyBean i DON'T have any methods referencing StoreBean. My problem is that i just can't get the @ejb.relation tags correctly to generate correct code in my ejb-jar.xml. I've searched under xdoclet documents and site, but couldn't solve this problem. So, could any one explain me (if its possible with an example) what should be done. I mean, in wich beans i got put the @ejb.relation tag (or any other else needed)? Thanks in advance, ltcmelo ______________________________________________________________________ Yahoo! Messenger - Fale com seus amigos online. Instale agora! http://br.download.yahoo.com/messenger/ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
