Internal Website Search
51-100 of 136 resultsGeneral Performance Issues Illustrated with a Specific Method.persistence. CascadeType ; import javax.persistence.Entity; import javax.persistence.FetchType; import javax ... (cascade = CascadeType .ALL,fetch = FetchType.EAGER) private Person person; @Index private String phn | |
How to delete M2M relationship? = CascadeType .ALL) @Cascade(org.hibernate.annotations. CascadeType .ALL)   | |
@Column( name = "columnName") doesn't work, cascade = CascadeType .ALL) @Column( name = "DATA_ITEMS" ) private List dataItems; @OneToOne(fetch = FetchType.LAZY, cascade = CascadeType .ALL) private AfwCodedDataBlock codedDataBlock; private int level | |
significant performance decrease) public List precessors = new ArrayList (); @OneToMany(fetch=FetchType.LAZY,cascade= CascadeType .REMOVE ... = new ArrayList (); @OneToMany(fetch=FetchType.LAZY,cascade= CascadeType .REMOVE) public List | |
can't get HashMap out of the database signingDate; @OneToMany(fetch=FetchType.EAGER, cascade= CascadeType ... .EAGER, cascade= CascadeType .ALL) private ArrayList guests = new ArrayList | |
Mapped By Fetch is very Slow : The entity : import javax.persistence. CascadeType ; import javax.persistence.Entity; import javax ... = null; @OneToOne(targetEntity = MyEntityChild.class, cascade = CascadeType .ALL,mappedBy | |
Problem with @Basic(fetch = FetchType.LAZY) with @OneToOne(fetch = FetchType.LAZY, cascade = CascadeType .ALL) private LargeString description; @OneToOne(fetch = FetchType.LAZY, cascade = CascadeType .ALL)   | |
Error 613 - i cant put a list | |
LAZY @ManyToOne field functions as EAGER; @ManyToOne(fetch=FetchType.LAZY, cascade= CascadeType .ALL) C ... ; @ManyToOne(fetch=FetchType.EAGER, cascade= CascadeType .ALL) C | |
Object explorer cannot open odb file. ObjectDB many-to-many relationship { @Id @ManyToOne(cascade = CascadeType .ALL, optional = false) private User user; @Id @ManyToOne(cascade = CascadeType | |
ObjectDB Explorer don't show ManyToOne relations;@ManyToOne (targetEntity = ModelElementImpl.class, cascade = { CascadeType .REFRESH}) private ModelElement ... ;@ManyToOne (targetEntity = ModelElementImpl.class, cascade = { CascadeType .REFRESH}) private | |
Database Inconsistency or corruption(cascade=javax.persistence. CascadeType .ALL, fetch = javax.persistence.FetchType.EAGER ... .persistence.OneToOne( cascade=javax.persistence. CascadeType .ALL,   | |
GWT RPC is throwing serialization exception when I have object db date value you! But now I have to set fetchtype and cascadetype explicit (which is no problem), otherwise the List will alway be empty after detaching. @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType | |
A lot of ENT and SIV instances which are not cleared by GC another ones. Also I've added cascade= CascadeType .DETACH or CascadeType | |
Why are my Map entries not stored?, cascade= CascadeType .ALL, mappedBy = "ticket", orphanRemoval=true ... = FetchType.EAGER, cascade= CascadeType .ALL, orphanRemoval=true) @MapKey(name="state") @MapKeyEnumerated | |
Is there any restriction when using fetch=FetchType.LAZY ? am using in object declaration @OneToMany(fetch=FetchType.EAGER, cascade = CascadeType .ALL) private ... @OneToMany(fetch=FetchType.LAZY, cascade = CascadeType .ALL) private LinkedList referencedObj | |
Detaching objects after JOIN FETCH.LAZY, cascade = CascadeType .ALL) List aClasses; } Now, I want to fetch all B classes ... thought, that after join fetch and CascadeType .DETACH list of A classes should be accessible from B | |
Foreign key constraint issue(cascade = { CascadeType .MERGE, CascadeType .REMOVE}, mappedBy = "parent", orphanRemoval = true)   | |
Lazy loading does not work - crud takes long; @OneToMany(cascade = CascadeType .ALL, orphanRemoval = true, mappedBy="project",fetch = FetchType.LAZY)   ... = CascadeType .ALL, orphanRemoval = true, mappedBy="project",fetch = FetchType.LAZY)   | |
OEM enhancing Hello, I have question regarding OEM licence enhancement. @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType .ALL) private SomeClass[] props; @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType .ALL) private Map vars = new TreeMap (); Are these classes(SomeClass, SomeClass2), when not | |
Weird behaviour with enhanced classes and embedded entities.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; import javax.persistence. CascadeType ... ; int id; @OneToMany(cascade = CascadeType .ALL, fetch = FetchType | |
Cannot sort descending, when ordering by caluculated float in a method { @OneToMany(cascade= CascadeType .PERSIST)   ... = FetchType.EAGER, orphanRemoval=true, cascade= CascadeType .ALL) private List itemList = new ArrayList | |
Remove not working(); emf.close(); } @Entity public static class A { @OneToMany(mappedBy="a", cascade= CascadeType | |
Issue with orphanRemoval and multiple EntityManagers; @OneToMany(cascade= CascadeType .ALL, fetch=FetchType.EAGER, orphanRemoval=true)   | |
_PersistenceException: Type is not found on getSingleResult. = "estudiante", cascade = CascadeType .ALL, orphanRemoval = true) private List | |
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 | |
Performance and memory usage of queries.persistence. CascadeType ; import javax.persistence.ElementCollection; import javax.persistence.Entity | |
Query over the keySet of a map field with collection parameter; } @OneToMany (cascade = CascadeType .ALL) public Map map = new HashMap (); } @Entity public static class | |
TemporalType injection with Calendar using JPA(TimePeriod id) { this.id = id; } @OneToMany(cascade=javax.persistence. CascadeType .ALL,fetch=javax | |
OneToMany and cascade delete problem = Offer.class, mappedBy = "product", fetch = FetchType.LAZY, cascade = CascadeType .ALL) private Set offers | |
Storing objects problem adding an annotation to a reference: @OneToMany(cascade= CascadeType .PERSIST)   | |
Does ObjectDB support lazy loading? A { @Id @GeneratedValue Long id; @OneToMany(fetch=FetchType.LAZY, cascade= CascadeType .ALL) List list | |
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 | |
Performance issue in a query due to compareTo calls = CascadeType .REMOVE) private Values valuesRef; } @Index (members = {"step.stepNumber"}) @Entity | |
Database(*.odb) file size on disk; import javax.persistence. CascadeType ; import javax.persistence.Entity; import javax.persistence | |
Beginners questions= CascadeType .ALL, mappedBy="VERLAG_ID") private List users; Table "EBUser": @Entity(name="USER | |
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 | |
Bidirectional OneToMany is slow on updated items: @OneToMany(cascade = { CascadeType .ALL}, fetch = FetchType.LAZY/*, mappedBy = "person"*/) private Set | |
TreeSet and compareTo() issue valid: @OneToMany(fetch = FetchType.EAGER, cascade= CascadeType .PERSIST | |
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 | |
Persisting collection where members are subclasses; @OneToMany(cascade= CascadeType .PERSIST)   | |
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 | |
LEFT (OUTER) JOIN problem when mappedBy is defined, cascade= CascadeType .ALL) private List itemList = new ArrayList (); private String name; public | |
NullPointer when accessing persistent field as follows; @OneToMany(cascade= CascadeType .ALL, mappedBy="z_component") @MapKey(name="z_schemeName ... (cascade= CascadeType .ALL, mappedBy="z_aqera") @MapKey(name="z_registerId") private | |
Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct) ArrayList (); @OneToMany(mappedBy = "owner", cascade = CascadeType .ALL) public List getOwnedElements ... is to set the fetch type to EAGER: @OneToMany(mappedBy = "owner", cascade = CascadeType .ALL, fetch=FetchType | |
NullPointerException on TreeSet load public static class MyEntity { @OneToMany(cascade= CascadeType ... { @OneToMany(cascade= CascadeType .PERSIST, fetch = FetchType.EAGER)   | |
Freeze during save { @ManyToOne(cascade= CascadeType .PERSIST) MyNode parent; @OneToMany(cascade= CascadeType .PERSIST) List | |
ArrayIndexOutOfBoundsException on flush(orphanRemoval=true, cascade= CascadeType .ALL) private Map _nodes; The TaskNode contains a further Entity | |
[ObjectDB 2.2.5_02] Unexpected exception (Error 990) com.objectdb.o.InternalException: java.lang.NullPointerException: null; } @OneToMany(cascade=javax.persistence. CascadeType .ALL,fetch=javax.persistence.FetchType.EAGER | |
Navigation through lazy loading from Detached Objects; @OneToMany(cascade= CascadeType .PERSIST)   |