Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335885 - Eclipselink can't save an null object when table has only id
Summary: Eclipselink can't save an null object when table has only id
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-31 13:01 EST by Luiz E. CLA
Modified: 2022-06-09 10:25 EDT (History)
1 user (show)

See Also:


Attachments
clientefornecedor java file (9.11 KB, text/x-java)
2011-02-03 10:47 EST, Luiz E. CLA
no flags Details
grupotelefone java file (2.41 KB, text/x-java)
2011-02-03 10:47 EST, Luiz E. CLA
no flags Details
telefone java file (6.17 KB, text/x-java)
2011-02-03 10:48 EST, Luiz E. CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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