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

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

Ansible warning on jinja2 braces on when -