java - JPA @ManyToOne bidirectional entity with predfined @Id column results in error -


i trying save entity user has set entities. bi-directional mapping. @id column of address entity, creating id in code in accordance business logic. when saving using save() method giving me error like:

unable find a.b.c.d.address id user101addr101

where user101addr101 id want save address entity.
i believe because of mapping if setting in code address entity having id user101addr101 jpa trying find entity first in table , not find it.
there way can tell jpa not entity , if looks , not find, should not give error. tried @notfound(action = notfoundaction.ignore) not seem work me.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -