Home » Search

About ManyToOne

81-85 of 85Refresh
Forum
1

Some details about db behavior

Suppose I have two entities... A B -> A B has a ManyToOne relationship with A. When my database is empty and I persist a valid B entity (that contains actual A reference) I observe some behavior that I'm not sure I understand. 1. In ObjectDB explorer I see Both B and A Entity classes available in
Forum
1

Visibility of changes in Transaction is not visible to a JPA QL Query

("unused") //used by JPA @ManyToOne private Singleton singleton; @Basic private String cachedKey
Forum
1

Object as parameter results in exception

Hi,    I've got a simple JPA2 Criteria query which fails when doing an object equality. I verified this against EclipseLink and over there, it works. I'll Attach some code snippets to help figure it out:   @Entity() public class Product{ . . . @ManyToOne     private Compamy
Forum
1

Relationships and tracking changes

@Column(name = "ID") @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @ManyToOne
Issue
1

Freeze during save

{ @ManyToOne(cascade=CascadeType.PERSIST) MyNode parent; @OneToMany(cascade