Hi everyone!
I'm facing challenges using Objectdb with pure JPA annotations. Please see the code below:
@Entity public class Employee { @Id private long id; private Company company; ... } @Entity public class Company { @Id private long id; ... }
When I try to remove an instance of Company, it is deleted from the database, no matter if it's referenced by an instance of Employee. I tried to use annotations like "OneToMany" and "ManyToOne", but the result is the same. What am I supposed to do?
Best regards,
FPS.