Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » AggregateCollectionMapping in DyanmicMapping (AggregateCollectionMapping does not work for DynamicMapping)
AggregateCollectionMapping in DyanmicMapping [message #918110] Thu, 20 September 2012 14:55 Go to previous message
jason zhang is currently offline jason zhang
Messages: 2
Registered: July 2009
Junior Member
I am using the Dynamic Map feature in eclipselink.
I noticed that JPADynamicTypeBuilder does not have a method to add
AggregateCollectionMapping method. AggregateCollectionMapping should
be the one for ElementCollection in JPA for embedded class.
I create and add AggregateCollectionMapping directly to JPADynamicTypeBuilder. Code is attached.
I can save embedded colleciton, and delete them together with owing instance. But I can not modify them(modify one element, remove one, or and one).

In my code, I first call create to create the mapping. I then call save. I check
logged sql and database structure. Embedded collection is saved
correctly. I then call removeOneName1 and removeOneName2 to remove one
embedded object by different approaches. But this removal is just ignored by EntityManager.

Any help is really appreciated.

-jason
  • Attachment: Test1.java
    (Size: 7.58KB, Downloaded 37 times)
 
Read Message
Read Message
Read Message
Previous Topic:query results cache for report queries?
Next Topic:Creating BLOBs
Goto Forum:
  


Current Time: Sat May 25 03:15:42 EDT 2013

Powered by FUDForum. Page generated in 0.01793 seconds