Is there a way to create a Conditional insert with JPA


I have a collection of People that contains a collection of Accounts, that contains a collection of fundsm that i insert into a table .

I have mapped this as People manyToMany Accounts manyTomany Funds in my JPA layer

I have free tables PEOPLE, ACCOUNT, FUND

I am extending and use  JpaRepository   List save(Iterable entities);

This code works, and I can add and read from the DB.

But now I want to extend the functionality, in FUND i have added a datetime, and if the fund comes in and has a datetime that...

Read More »

By: coderanch.comforumsrssforumTopics78ORM - 6 days ago

Related Posts