Internal Website Search

51-56 of 56 results

How to pass a list in query for a list field of entity.

I have a entity as bellow :- @Entity @Table(name = "agent") public class Agent implements Serializable { @Id @GeneratedValue(strategy = GenerationType .AUTO) private Long Id; private List SocialMedias; public Agent() { } public Long getId() { return Id; } public List getSocialMedias() { return

Lazy loading does not work - crud takes long

; @GeneratedValue(strategy = GenerationType .SEQUENCE, generator = "PROJECT_SEQUENCE")    

Null enums and IS (NOT) NULL: NullPointerException

class TEntity { public enum ExampleEnum { P1, P2 } @Id @GeneratedValue(strategy = GenerationType

How to query for list of lists ?

{ private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType .IDENTITY

How to apply constraints in collection attributes of entity.

How to apply constraints like unique, not null ...etc in collection attribute of a entity. Example : @Entity @Table(name = "agent") public class Agent implements Serializable { @Id @GeneratedValue(strategy = GenerationType .AUTO) private Long Id; private List PhoneNumbers; public Agent() { } public

Error 363 - Failed to read value of inverse relationship

I've got two objects: @Entity public class EEvent { @Id @GeneratedValue(strategy = GenerationType .AUTO) private long id; @ManyToOne(optional=false) private ETown town; public ETown getTown() { return town; } public void setTown(ETown town) { this.town = town; } } And: @Entity public class ETown