ObjectDB Database Search
101-136 of 136 resultsUpgrade to 2.4.1_01 our code for 2.3.7_18, we had @OneToOne(cascade= CascadeType .ALL, fetch=FetchType.EAGER | |
Global way to set Lazy-loading fetch functionality for all the fields Hi, for cascading persist, I have 3 choices: - Either locally (@OneToOne(cascade= CascadeType .PERSIST)) - Either at objectdb level ( ) - Either at JPA global level (orm.xml). For defining fetch policy, I know the local way to do it (@ManyToOne(fetch=FetchType.LAZY)). Is there any way | |
Problem with merging / persisitng objects with @Embeddable field = CascadeType .ALL) List productDemands; @Entity public class ProductDemand extends BaseEntity implements | |
Selective merge/cascade of detatched entity, cascade= CascadeType .All) private Map companyTargets; } @Entity public class Company { private | |
Help understanding Entity behavior with JPA Hi Support, We have a entity with an @Id entity which we then put into a list and store in an different entity inside a field defined as: @OneToOne(orphanRemoval=true, cascade= CascadeType .ALL, fetch=FetchType.EAGER) private Object payload; the list that we put in the 'payload | |
Bidirectional OneToMany is slow on updated items: @OneToMany(cascade = { CascadeType .ALL}, fetch = FetchType.LAZY/*, mappedBy = "person"*/) private Set | |
Broken @ManyToOne reference Hi, I have objects of type A belonging to objects of type B, defined as follows: @MappedSuperclass public abstract class A { @Id @ManyToOne(fetch = FetchType.EAGER, cascade= CascadeType .ALL, optional=false) private B b; @Id @Column(length = 36) private String stringId; } @MappedSuperclass public | |
_PersistenceException: Type is not found on getSingleResult. = "estudiante", cascade = CascadeType .ALL, orphanRemoval = true) private List | |
OEM licencing limitation = FetchType.EAGER, cascade = CascadeType .ALL) private Map vars = new TreeMap | |
Error during cascaded merge = CascadeType .ALL, orphanRemoval = true, fetch = FetchType.EAGER) @OrderBy | |
Memory leak while merging parent with No Cascade annotation with children;2.5.5_05 ) import java.util.ArrayList; import java.util.List; import javax.persistence. CascadeType | |
List always null; @OneToMany(targetEntity = Noticia.class, mappedBy = "categorias", cascade = CascadeType .PERSIST | |
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 | |
PostUpdate collection null, cascade= CascadeType .PERSIST) List myCollection = new | |
Performance and memory usage of queries.persistence. CascadeType ; import javax.persistence.ElementCollection; import javax.persistence.Entity | |
Repair broken references in entities Hello, it is possible to recover an entity that has been removed automatically by CascadeType .Remove. After cascade remove the removed entity will be persisted with the identical primary key. Are all broken references in other entities on this removed/persisted entity repaired again? best regards | |
@OneToOne query issue with OR and IS NULL = CascadeType .ALL) private B another } class B {   | |
LifeCycle Event with Embeddable classes Hello, is there a way that lifecycle events like prepersist or preupdate are also fired for embeddable classes, not just for entities? My case looks as follows: @Entity public class Foo { @Id @GeneratedValue private Long id; private String description; @OneToMany(cascade = CascadeType .ALL, fetch | |
Remove not working(); emf.close(); } @Entity public static class A { @OneToMany(mappedBy="a", cascade= CascadeType | |
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 | |
TreeSet and compareTo() issue valid: @OneToMany(fetch = FetchType.EAGER, cascade= CascadeType .PERSIST | |
Database(*.odb) file size on disk; import javax.persistence. CascadeType ; import javax.persistence.Entity; import javax.persistence | |
An ArrayIndexOutOfBoundsException with nested entities and enhanced entities { @ManyToOne (targetEntity = DataTypeImpl.class, cascade = { CascadeType .ALL }, fetch = FetchType.LAZY | |
ObjectDB 2.6.9_06 (embedded): Cascading merge resulting in duplicate objects= CascadeType .ALL) private List addresses; public | |
Beginners questions= CascadeType .ALL, mappedBy="VERLAG_ID") private List users; Table "EBUser": @Entity(name="USER | |
Relationships and tracking changes = GenerationType.AUTO) private Long id; @OneToMany (fetch=FetchType.LAZY,cascade= CascadeType .ALL, mappedBy | |
Entity not removed 100% When I remove an object from a class it get's removed but the other objects that had that object as an attribute still keep it although I am using @OneToMany(cascade= CascadeType .ALL) This is what it remains when I check the removed object from another object's attributes Unknown | |
Find the error...JPA ENTITY HIBERNATE. CascadeType ; import javax.persistence.Column; import javax.persistence.Entity; import javax | |
Cascade type annotaion on an embeddable type addition, does CascadeType affects embeddable objects? Yotam Yotam Boaz No need to specify the Embedded | |
Storing a tree of data (depth=3); /** real name of person in life. */ @NonNull @ManyToOne(cascade = CascadeType .MERGE) private Performer | |
Performance issue in a query due to internal calls visitRefs and visitKeyRefs; @Basic private int signalIndex = 0; @OneToMany (cascade = CascadeType .ALL, targetEntity = TCSignal | |
Performance issue in a query due to compareTo calls = CascadeType .REMOVE) private Values valuesRef; } @Index (members = {"step.stepNumber"}) @Entity | |
Unexpeted internal exception.class, mappedBy = "paises", cascade = CascadeType .ALL) private ListProperty listaCiudades = new | |
How to move @Embedable collection to a dedicated entity class?; @OneToMany(orphanRemoval = true, cascade = CascadeType .ALL) List children; } @Embeddable class Child{ @Id | |
Query over the keySet of a map field with collection parameter; } @OneToMany (cascade = CascadeType .ALL) public Map map = new HashMap (); } @Entity public static class | |
Speeding up the creation of Log entity objects related to other objects { @Id @GeneratedValue private long id; @OneToMany(fetch = FetchType.EAGER, cascade={ CascadeType |