ObjectDB Database Search

51-77 of 77 results

Merge with Parent/Child entities not possible

, cascade = CascadeType.ALL, mappedBy = "parent", orphanRemoval = true)   @MapKey(name = "childName

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

Problem with @OrderBy

;   @OneToMany( mappedBy ="defect")     @OrderBy("seqRel, noteSeq

Query only works correctly when debug printing results

@GeneratedValue private long id; private String reqLevelName = "DEF"; @OneToMany( mappedBy

Possible issue for JPQL IS EMPTY expression

class MyEntity { @OneToMany( mappedBy ="myentity") ArrayList others = new ArrayList (); void

Unexpeted internal exception

.class, mappedBy = "paises", cascade = CascadeType.ALL) private ListProperty listaCiudades = new

Cascading persistence through an inverse field

) { points.add(p); } ... } @Entity public class Point { @ManyToMany( mappedBy ="points", cascade={PERSIST

Problem with merging / persisitng objects with @Embeddable field

Serializable, Convertable { @ManyToMany(targetEntity = ProductSet.class, mappedBy = "productDemands

@OneToOne query issue with OR and IS NULL

Hello, I'm struggeling to get a query run right. I have 2 entities (simplified) class A {     @Id     @GeneratedValue     private Long key;          @OneToOne( mappedBy = "other", cascade

Error during cascaded merge

"}),}) public class Unit implements Serializable, Comparable { ... @OneToMany( mappedBy = "unit", cascade

List always null

; @OneToMany(targetEntity = Noticia.class, mappedBy = "categorias", cascade = CascadeType.PERSIST

Failed to write the value of field using reflection (error 363) on LAZY fetch

=FetchType.LAZY, mappedBy ="modell", cascade=CascadeType.ALL) private List articles = new ArrayList (); public

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

id; @OneToMany( mappedBy = "customer",fetch= FetchType.EAGER,       

Removing an element from an @OneToMany doesn't work

Hello. I have a Parent and Child entities. // in the parent @OneToMany( mappedBy = "parent", fetch = FetchType.EAGER, cascade = CascadeType.ALL) private List children; // in the child @ManyToOne private Parent parent; Somewhere I do this: parent.getChildren().remove(0); manager.merge(parent

Foreign key constraint issue

(cascade = {CascadeType.MERGE, CascadeType.REMOVE}, mappedBy = "parent", orphanRemoval = true)  

Mapped (Inverse) LAZY @OneToMany vs. Unmapped LAZY @OneToMany

; @OneToMany(fetch = FetchType.LAZY, mappedBy = "a", cascade = CascadeType.ALL)    

"Problem" with cross join

; @OneToMany( mappedBy ="ci") private List content; abstract class CIdata (@Inheritance(strategy=InheritanceType

Extra uninitialised entities spawned on merge()

();         @OneToMany( mappedBy = "owner",     

Problem with entities detection

; @Embedded private Direccion direccion; @OneToMany( mappedBy = "idAlumno") private List

Merge Issue: Attempt to reuse an existing primary key value

= CascadeType.ALL, mappedBy = "parent")         @OneToMany(fetch

Find the error...JPA ENTITY HIBERNATE

(name = "message") private String message; @ManyToMany( mappedBy = "messages") private Set user; public

Cannot sort descending, when ordering by caluculated float in a method

, to demonstrate the issue: @Entity public class Invoice { @OneToMany( mappedBy = "invoice", fetch

Mysterious "Attempt to persist a reference to a non managed instance" error

@ManyToMany(cascade = {CascadeType.ALL}, targetEntity = Passenger.class, mappedBy = "buses")  

Remove not working

(); emf.close(); } @Entity public static class A { @OneToMany( mappedBy ="a", cascade=CascadeType

Enhanced classes problem

and annotations: @OneToMany(fetch = FetchType.EAGER, mappedBy = "jobInfoId")  // relation

JPQL support for mapped by (inverse) collections

;    @OneToMany( mappedBy ="a")         ArrayList list

com.objectdb.o.InternalException: java.lang.NullPointerException

Hello, I have a CUIT entity, with a OneToMany List field called razonesSociales (that can be null): @OneToMany ( mappedBy = "cuit") private List razonesSociales; When I run this query it works ok: SELECT COUNT(item.sysID) FROM CUIT item WHERE  ( (item.sysStatus.sysID=1)  AND