|
|
|
Re: @OneToMany does not work with schema-generation = drop-and-create [message #1700210 is a reply to message #1699693] |
Tue, 30 June 2015 15:01  |
Eclipse User |
|
|
|
The bug does not have enough information to reproduce a problem, or show what your issue really is. Since you outline workarounds of disabling DDL generation, or clearing the cache, I suspect your problem has to do with how you are creating entities and putting them into the cache when they do not already exist. The relationship will be null if you haven't set it.
You can verify what might be happening by calling em.refresh() on the entity with the null OneToMany relationship and see what is returned. If the relationship is then populated, the issue is likely with your application and how this object is being persisted.
Best Regards,
Chris
|
|
|
Powered by
FUDForum. Page generated in 0.04838 seconds