Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » [Fwd: [dali-dev] Many to many relationship problem]
[Fwd: [dali-dev] Many to many relationship problem] [message #613110] Tue, 02 December 2008 15:47
Brian Vosburgh is currently offline Brian Vosburgh
Messages: 131
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050103060108050700050403
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Re-posted from dev mailing list:

-------- Original Message --------
Subject: [dali-dev] Many to many relationship problem
Date: Tue, 2 Dec 2008 17:18:33 +0100
From: Quattrocchi Luigi <luigi.quattrocchi@telecomitalia.it>
Reply-To: General Dali EJB ORM developer discussion.
<dali-dev@eclipse.org>
To: 'dali-dev@eclipse.org' <dali-dev@eclipse.org>



Hi,
trying to use Dali to generate entities from tables (JPA Tools > Generate Entities), I've noticed that if in your database there is a many to many relationship of a table with itself (see attached example) the generated entity for such table contains some errors due to a field duplication.
Is this a Dali bug or I'm doing something wrong?
Thank you.
Regards,

Luigi

Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle persone indicate. La diffusione, copia o qualsiasi altra azione derivante dalla conoscenza di queste informazioni sono rigorosamente vietate. Qualora abbiate ricevuto questo documento per errore siete cortesemente pregati di darne immediata comunicazione al mittente e di provvedere alla sua distruzione, Grazie.

Rispetta l'ambiente. Non stampare questa mail se non e' necessario.



www.avoicomunicare.it Ogni giorno, il tuo luogo di dialogo.



--------------050103060108050700050403
Content-Type: application/octet-stream;
name="Item.java"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="Item.java"

cGFja2FnZSBidWc7DQoNCmltcG9ydCBqYXZhLmlvLlNlcmlhbGl6YWJsZTsN CmltcG9ydCBq
YXZhLnV0aWwuU2V0Ow0KaW1wb3J0IGphdmF4LnBlcnNpc3RlbmNlLkVudGl0 eTsNCmltcG9y
dCBqYXZheC5wZXJzaXN0ZW5jZS5JZDsNCmltcG9ydCBqYXZheC5wZXJzaX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0KCX0NCg0KCXB1YmxpYyBTZXQ8SXRlbT4gZ2V0SXRlbUNvbGxlY3Rpb24y KCkgew0KCQly
ZXR1cm4gdGhpcy5pdGVtQ29sbGVjdGlvbjI7DQoJfQ0KDQoJcHVibGljIHZv aWQgc2V0SXRl
bUNvbGxlY3Rpb24yKFNldDxJdGVtPiBpdGVtQ29sbGVjdGlvbjIpIHsNCgkJ dGhpcy5pdGVt
Q29sbGVjdGlvbjIgPSBpdGVtQ29sbGVjdGlvbjI7DQoJfQ0KDQoJcHVibGlj IFNldDxJdGVt
PiBnZXRJdGVtQ29sbGVjdGlvbjIoKSB7DQoJCXJldHVybiB0aGlzLml0ZW1D b2xsZWN0aW9u
MjsNCgl9DQoNCglwdWJsaWMgdm9pZCBzZXRJdGVtQ29sbGVjdGlvbjIoU2V0 PEl0ZW0+IGl0
ZW1Db2xsZWN0aW9uMikgew0KCQl0aGlzLml0ZW1Db2xsZWN0aW9uMiA9IGl0 ZW1Db2xsZWN0
aW9uMjsNCgl9DQoNCn0NCg==
--------------050103060108050700050403
Content-Type: image/gif;
name="er.gif"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="er.gif"

R0lGODlhZgLLAHcAACwAAAAAZgLLAKf6+vns6dh6lt+sqJl/nbkAAABxb2TY 5Pjw7+MyMZyY
MDCAgICcms7Av+DT0cn//wBleMtgXrHq6eXz8uvBvrPMycABZs60sKPZ2ND1 9PJxcLrV1Ooy
mv+AgADj4duJicZwl+QyfOPIxrySfk2jWWJaasK7rcq7q23AwMDg3ti0lq1/ hcK8uayxrp/J
yORkY7SqqNW5t9x3h9B+ickyms7v7+xpj91qkN21mrTEiYlzk9/GxLmPTmOJ TWzRz8bm12v/
3V/txG7+80b983fw4F7n2GL/22zNyLP/8jnLwCHawyfSxVn1wkb/3lXbzV3i 1Fq9t4703Zyy
rZH+95f/+OXAupLY1ajz14bQvYGZlYCfnZP+9Xzx8Ofc2sPc2cyxrI/i4M6m o5fovW+ig02d
k1aViEiwjVW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QONyImswY3RzyqeXRoA3dIoWdPQe9M4XZU6vdMs3dNb8dNALdRxQdSB HNRGjRWl3NRO
/dSirNRLXRXDXNVWfdVYndVavdXAPNVe/dVgHdZiPdZkXdZmfdZondZqvdZs 3dZu/dZwHddy
Pdd0Xdd2fdd4ndd6vdd83dd+/deAHdiCPdiEXdiGfdiIndiKvdiM3diO/diQ HdmSPdmUXdmW
fdmYndmavdkGFRAAOw==
--------------050103060108050700050403
Content-Type: text/plain;
name="Attached Message Part"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Attached Message Part"

_______________________________________________
dali-dev mailing list
dali-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/dali-dev


--------------050103060108050700050403--
Previous Topic:Migration from Dali 2.0 to 2.1
Next Topic:API changes in recent Dali 2.1 builds
Goto Forum:
  


Current Time: Sat Apr 19 08:53:15 EDT 2014

Powered by FUDForum. Page generated in 0.03987 seconds