Internal Website Search

51-87 of 87 results

Relationships and tracking changes

= GenerationType.AUTO) private Long id; @OneToMany (fetch=FetchType.LAZY,cascade=CascadeType.ALL, mappedBy ... annotations such as @Column and JoinColumn . Therefore, Java field names should be used in mappedBy . See also this manual page . support Support

Remove not working

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

_PersistenceException: Type is not found on getSingleResult.

;  private Municipio lugarNacimiento;         @OneToMany( mappedBy

"Failed to serialize instance" of Set problem

Hi, I'm trying to persists objects defined as follows: @Entity @Inheritance(strategy = InheritanceType.SINGLE_TABLE) public abstract class AbstractContainer { ... @OneToMany(fetch = FetchType.LAZY, mappedBy ="parent") private Set abstractContainers = com.google.common.collect.Sets

ManyToMany Set is null

= FetchType. EAGER , cascade={CascadeType. DETACH ,CascadeType. MERGE ,CascadeType. REFRESH }, mappedBy

Problem with queries on lists with reverse mapping

query. If the "team" is omitted from the player and targetEntity = Player.class, mappedBy

find() cost unreasonable time!

) private int id; @ManyToOne @JoinColumn(name="parent") protected Nodes parent; @OneToMany( mappedBy

OrphanRemoval not working?

Dear all, I have entities Invoice and InvoiceItem, their relation is defined: public class Invoice implements Serializable { ... @OneToMany( mappedBy ="invoice", fetch=FetchType.EAGER,              orphanRemoval=true, cascade=CascadeType

Beginners questions

=CascadeType.ALL, mappedBy ="VERLAG_ID") private List users; Table "EBUser": @Entity(name="USER

Is it possible to remove parent/child entities without refresh?

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

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")  

ObjectDB 2.9.1

Added support of embedded path expressions to  mappedBy  fields ( issue #2917 ) Fixed the SectionClassifier retrieval bug ( issue #2912 ). Fixed log file location for some server log messages ( issue #2914 ).

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