Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Embed on Secondary Table

 
Abhinav Srivastava
Ranch Hand
Posts: 354
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using OpenJPA.

I have two Tables CUSTOMER and CUSTOMER_EXT (mapped as Secondary)


I have COLUMNS FROM_DT, TO_DT in CUSTOMER_EXT and I am using a class DateRange which maps those columns.

I am trying to embed this class and persist in the Secondary Table.



When I do this it tries to insert into a column named DATERANGE_CUST_ID in CUSTOMER_EXT which obviously is not there.
Any Clues?
 
Abhinav Srivastava
Ranch Hand
Posts: 354
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I sent this to the OPENJPA Mailing list and it was acknowledged as a bug. It is fixed for 1.3 release.
OpenJPA Issue Tracker
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the bug update!

-Cameron McKenzie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic