Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Cannot merge entity when there is other entity extends
Cannot merge entity when there is other entity extends [message #525687] Wed, 07 April 2010 13:17
vtduy  is currently offline vtduy Friend
Messages: 2
Registered: November 2009
Junior Member
Hi all,

I have 1 table in DB with 2 column are c1 and c2.
I created 1 entity as follow:
@Table(name = "Table1")
public class Table1 implements Serializable {
@Column(name="c1", nullable = false)
private Long c1;
@Column(name="c2", length = 200)
private String c2;
// getter and setter ...

after, I created 1 other entity as follow
name = "MyEntityExtend.getData",
query = "select rownum id, Table1.* from Table1",
resultClass = MyEntityExtend.class)
public class MyEntityExtend extends Table1 {
public MyEntityExtend() {
@Column(name = "ID")
private String id;
// getter abd setter ...

But when MyEntityExtend extends Table1 then I cannot merge Table1 object. if there is not any entity extends Table1 then merge Table1 object is OK
Please help me

Previous Topic:Record persist order
Next Topic:strange behaviour
Goto Forum:

Current Time: Tue May 22 10:25:41 GMT 2018

Powered by FUDForum. Page generated in 0.01777 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top