Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335885

Summary: Eclipselink can't save an null object when table has only id
Product: z_Archived Reporter: Luiz E. <luizeduardokowalski>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P2 CC: tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
clientefornecedor java file
none
grupotelefone java file
none
telefone java file none

Description Luiz E. CLA 2011-01-31 13:01:53 EST
but here's my problem: ig have these three classes:

Cliente: http://pastie.org/1501994 (yes, cliente has id, but is not shown)
GrupoTelefone: http://pastie.org/1501995
Telefone: http://pastie.org/1501996

when i try to save a NEW 'cliente', eclipselink says that the fields to insert on grupotelefone table is null..so, looking at the grupotelefone table, it has only an Id, which is referenced in other tables...but, being a new grupotelefone, he hasn't id (the database generates a new one) and this way, all the fields (only id, in this case) is null...

anyway, refer to: http://www.eclipse.org/forums/index.php?t=msg&th=203773&start=0&S=84a0b649e689e5e3abd5bbcc0ea5b6ed
Comment 1 Tom Ware CLA 2011-02-03 10:07:15 EST
Please include your actual code in this bug report rather than links to external sites.  There is no guarantee how long code on pastie.org will last.
Comment 2 Luiz E. CLA 2011-02-03 10:47:37 EST
Created attachment 188246 [details]
clientefornecedor java file
Comment 3 Luiz E. CLA 2011-02-03 10:47:57 EST
Created attachment 188247 [details]
grupotelefone java file
Comment 4 Luiz E. CLA 2011-02-03 10:48:22 EST
Created attachment 188248 [details]
telefone java file
Comment 5 Luiz E. CLA 2011-02-03 10:49:10 EST
(In reply to comment #1)
> Please include your actual code in this bug report rather than links to
> external sites.  There is no guarantee how long code on pastie.org will last.

done :D
Comment 6 Tom Ware CLA 2011-02-10 09:10:10 EST
Setting target and priority.  See the following page for the meanings of these fields:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines
Comment 7 Eclipse Webmaster CLA 2022-06-09 10:25:22 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink