Home » Search

About GeneratedValue

51-60 of 131Refresh
Forum
1

Double persist of Entity field with Cascade.ALL

follows: @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; private String ... > chapters; The Chapter fields are as follows: @Id @GeneratedValue(strategy = GenerationType.AUTO
Forum
1

EntityManager refresh problem

entities; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity public class SimpleEntity {     @Id @GeneratedValue private Long
Forum
1

Error 613 - i cant put a list<Athlete> into a Squad object

.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.OneToMany ... {     /**      *      */     private static final long serialVersionUID = 1L;     @Id     @GeneratedValue     private long id
Forum
1

failure to enforce NOT NULL for java.lang.String

: @Entity public class Request { public Request() { } @Id @GeneratedValue(strategy ... {         public Request() {         }         @Id @GeneratedValue(strategy=GenerationType.IDENTITY
Forum
1

Field in Generic Class not persisted?

; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence ... .SerializationUtils; @Entity public class OBJ6 extends ABS{      @Id @GeneratedValue long id
Forum
1

find() delay

MyEntity {         @Id @GeneratedValue long id;     } } Try to change this example to demonstrate ... {   @Id @GeneratedValue(strategy=GenerationType.IDENTITY)   private int id;   @ManyToOne
Forum
1

Foreign key constraint issue

    @GeneratedValue     private long id;     @ManyToOne(optional = false, cascade = {})     @JoinColumn(name ... (Parent parent) {this.parent = parent;} } @Entity public class Parent {     @Id     @GeneratedValue
Forum
1

Items in list are doubled, when the entity class is not enhanced

@GeneratedValue private Long id; @OneToMany(mappedBy = "customer",fetch= FetchType.EAGER ... final long serialVersionUID = 1L; @Id @GeneratedValue private Long id
Forum
1

Join query problem with new statetment

Inspiration extends BaseEntity implements Serializable, Convertable {     @GeneratedValue(strategy ... public class Product extends BaseEntity implements Serializable, Convertable {     @GeneratedValue
Issue
1

JPQL support for mapped by (inverse) collections

class A {         @Id @GeneratedValue long id;                 @OneToMany(mappedBy ... @GeneratedValue long id;                 @ManyToOne         A a;            } } The query in