Is it possible to create a conditional insert with JpaRepository

Hi

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  org.springframework.data.jpa.repository.JpaRepository 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...

Read More »

By: coderanch.comforumsrssforumTopics78ORM - 6 days ago

Related Posts