You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently implementing a CascadeBulkDeleteJPARepostory to rectify a problem we are having with bulk deletes not removing @EmbeddedCollections. This is a well known problem (see http://stackoverflow.com/questions/3903202/how-to-do-bulk-delete-in-jpa-when-using-element-collections) and am overwriting the SimpleJPARepository to fix such a problem (temporarily just by performing deleteAll(Collection) at this stage). But I would find it beneficial to have access to the variables set by the constructor (at least in 1.0.0.M2).
Now obviously I currently maintain a reference to the objects in my implementation but providing a:
EntityManger getEntityManager()
and
JpaEntityInformation<T, ID> getEntityMetadata()
in the SimpleJPARepostory would be quite useful for such cases.
Thanks & great work.
The text was updated successfully, but these errors were encountered:
'just by performing deleteAll(Collection)' that should be: I'm using the existing 'SimpleJPARepository.delete(Iteratable) inside the overriden deleteAll method.' It's hardly a pretty solution but I plan on parsing entity meta data at a later date.
I'm currently implementing a CascadeBulkDeleteJPARepostory to rectify a problem we are having with bulk deletes not removing @EmbeddedCollections. This is a well known problem (see http://stackoverflow.com/questions/3903202/how-to-do-bulk-delete-in-jpa-when-using-element-collections) and am overwriting the SimpleJPARepository to fix such a problem (temporarily just by performing deleteAll(Collection) at this stage). But I would find it beneficial to have access to the variables set by the constructor (at least in 1.0.0.M2).
Now obviously I currently maintain a reference to the objects in my implementation but providing a:
EntityManger getEntityManager()
and
JpaEntityInformation<T, ID> getEntityMetadata()
in the SimpleJPARepostory would be quite useful for such cases.
Thanks & great work.
The text was updated successfully, but these errors were encountered: