Home » Search

About GeneratedValue

91-100 of 128Refresh
Forum
1

Failing to read entities under load in multithreaded tests

;     private long longId;     @Id     @GeneratedValue(strategy=GenerationType.TABLE, generator
Forum
1

How to avoid NULL values on Embedded entities

Hi there. I'm new on this. trying to learn. I'm trying to make a value non nulleable. So, when I try to upload to the DB this field as null, it give me an error. I tried this, but it didn't work: public class Pedido {     @Id @GeneratedValue     private long id;         @Embedded private Direccion
Forum
1

How to create a Unique constraint?

Hi, I'm trying to create a unique constraint. Here is a simple example: @Entity public class Account { @Id @GeneratedValue private long id; @Index(unique="true") private String name; } The code runs and my Account objects are persisted. But no exception is thrown
Forum
1

How to delete M2M relationship?

In user model class I have the following: public class User implements Serializable {     @Id     @GeneratedValue(strategy = GenerationType.AUTO)     private Long id;     @ManyToMany(mappedBy = "attendees", cascade = CascadeType.ALL)     @Cascade(org.hibernate.annotations.CascadeType
Forum
1

How to query for list of lists ?

final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY
Forum
1

Intermittent: "Attempt to reuse an existing primary key value" when persisting a new instance

for the id:   @Id     @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="user_pwd_seq
Forum
1

java.sql.Time field off by 30 minutes

());     }     @Entity     public static class MyEntity {         @Id @GeneratedValue(strategy
Forum
1

java.sql.Timestamp.getTime() not working

class Player { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) public int id; @Temporal
Forum
1

LAZY @ManyToOne field functions as EAGER

A {                 @Id         @GeneratedValue         Long id;         String name
Forum
1

Lazy loading does not work - crud takes long

Project implements Serializable {     @Id     @GeneratedValue(strategy = GenerationType.SEQUENCE