Internal Website Search
31-40 of 145 resultsRefreshIs it possible to remove parent/child entities without refresh?.persistence.FlushModeType; import javax.persistence.GeneratedValue; import javax.persistence.Id; import ... public static class ParentEntity { @Id @GeneratedValue private long id;   ... { @Id @GeneratedValue private long id; @ManyToOne(fetch = FetchType | |
Merge with Parent/Child entities not possible javax.persistence.FlushModeType; import javax.persistence.GeneratedValue; import javax.persistence ... ; @GeneratedValue private long id; @OneToMany(fetch = FetchType.LAZY, cascade ... ; } } @Entity public static class ChildEntity { @Id @GeneratedValue private long | |
How to use JOIN FETCH?; import javax.persistence.EntityManagerFactory; import javax.persistence.GeneratedValue; import ... null. } } @Entity public static class Person { @Id @GeneratedValue private long ... @GeneratedValue private long id; private String address; public long getId() {   | |
ID format in objectdb 2.x for JDOHelper.getObjectId an ID field: private @Id @GeneratedValue long id; // JPA code ... adding private @Id @GeneratedValue long id; but i think it only works in case of JPA not with JDO ... @GeneratedValue private long id; This should work also with JDO | |
Database Inconsistency or corruption.GeneratedValue(strategy = javax.persistence.GenerationType.TABLE, generator = "objectValueGen")   ... .Id @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.TABLE ... { @javax.persistence.Id @javax.persistence.GeneratedValue(strategy = javax | |
Criteria query error: Unexpected query token */ @Id // @GeneratedValue(strategy = GenerationType.TABLE, generator = "sequences") // @TableGenerator(name = "sequences", initialValue = 1, allocationSize = 50) // @GeneratedValue(strategy = GenerationType.SEQUENCE) @GeneratedValue private Long id; /** * Version | |
Remove an entity which attributes were changed - OptimisticLockException class MyEntity { @Id @GeneratedValue long id;   ... ; import javax.persistence.EntityManagerFactory; import javax.persistence.GeneratedValue; import javax ... ; @GeneratedValue long id;   | |
Can a Set | |
Bug: ClassCastException by retrieval.EntityManagerFactory; import javax.persistence.EntityTransaction; import javax.persistence.GeneratedValue ... (); } } @Entity class Node<TN> { @Id @GeneratedValue(strategy | |
"is not null" queries not working with index javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence ... ; @Id @GeneratedValue private long id;   |