Internal Website Search
51-100 of 137 resultsWhy are my Map entries not stored? private long id; @OneToMany(fetch = FetchType .EAGER ... ;@ManyToOne(fetch = FetchType .EAGER) private Ticket ticket = null;   ... = FetchType .EAGER, cascade=CascadeType.ALL, orphanRemoval=true) @MapKey(name="state") @MapKeyEnumerated | |
Mapped (Inverse) LAZY @OneToMany vs. Unmapped LAZY @OneToMany; @ManyToOne(fetch = FetchType .LAZY, cascade = CascadeType.ALL)   ... ; @OneToMany(fetch = FetchType .LAZY, mappedBy = "a", cascade = CascadeType.ALL)   ... = FetchType .LAZY, cascade = CascadeType.ALL) List listB | |
Merge Issue: Attempt to reuse an existing primary key value; static class A { //@OneToMany(fetch = FetchType .LAZY, cascade ... = FetchType .LAZY, cascade = CascadeType.ALL) private List ... ; @ManyToOne(fetch = FetchType .LAZY, cascade = { CascadeType.ALL })   | |
Multiple Collection Fields not update correctly v2.8.8_2 I have an entity that has 2 collection fields: @OneToMany(fetch = FetchType .EAGER) Collection position; @OneToMany(fetch = FetchType .EAGER) Collection rotation ; Now if I persist them so the values are: position | |
ManyToMany Set is null @GeneratedValue private long id; @ManyToMany(fetch = FetchType . EAGER , cascade ... = FetchType . EAGER , cascade={CascadeType. DETACH ,CascadeType. MERGE ,CascadeType. REFRESH }, mappedBy | |
List of Enum Values in an entity LAZY to EAGER : private @OneToMany(fetch= FetchType .EAGER) List flags; According ... make a difference for ObjectDB, but to remove this error / warning try: private @Basic(fetch= FetchType .EAGER) List flags; support Support | |
Does ObjectDB support lazy loading? to @OneToMany(fetch= FetchType .EAGER), the properties can be read. It seems to me that ObjectDB doesn't ... A { @Id @GeneratedValue Long id; @OneToMany(fetch= FetchType .LAZY, cascade=CascadeType.ALL) List list | |
TreeSet and compareTo() issue through a collection field in another class that uses eager fetch: @OneToMany(fetch = FetchType .EAGER ... valid: @OneToMany(fetch = FetchType .EAGER, cascade=CascadeType.PERSIST | |
EntityManager.refresh takes a long time siteAuth; private DialogAction currentDialogAction; @ManyToMany(fetch = FetchType .EAGER, cascade ... .PERSIST}) private Album mainAlbum; @OneToMany(mappedBy="person", fetch = FetchType .EAGER, cascade | |
EM.find() is suddenly slower.FIELD) @Column (name = "uid") private String uid; @OneToOne (fetch = FetchType .EAGER, cascade ... = FetchType .EAGER, cascade = {CascadeType.REFRESH, CascadeType.DETACH }) private HashMap mappingMap = new | |
@Column( name = "columnName") doesn't work(name = "KEY_DESCRIPTOR") private AfwKeyDescriptor keyDescriptor; @OneToMany(fetch = FetchType .LAZY ... = FetchType .LAZY, cascade = CascadeType.ALL) private AfwCodedDataBlock codedDataBlock; private int level | |
Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne).persistence.Basic; import javax.persistence.Entity; import javax.persistence. FetchType ; import javax ... getSingleton() { return container; } } @ManyToOne(fetch= FetchType .LAZY) @Id private Container container | |
Problem witch CriteriaBuilder isMember(..) class Container { @ElementCollection(fetch = FetchType .EAGER) List testlist1 = new LinkedList (); @ElementCollection(fetch = FetchType .EAGER)   | |
Problem with merging / persisitng objects with @Embeddable field Serializable, Convertable { (...) @ElementCollection(fetch = FetchType .EAGER) List productSets; @Embeddable public class ProductSet implements Serializable { @ManyToMany(fetch = FetchType .EAGER, cascade | |
Adding multi part path index on non-embedable object member { @MapsId @ManyToOne(fetch = FetchType .LAZY) private Merchant merchant; @MapsId @ManyToOne(fetch = FetchType .LAZY) private List stores; // Setter/Getter } So I wanted to add index on Customer for merchant | |
PostUpdate collection null; @OneToMany(fetch= FetchType .EAGER) private ArrayList myCollection = new ArrayList ... ; @OneToMany(fetch= FetchType .EAGER | |
Database Inconsistency or corruption(cascade=javax.persistence.CascadeType.ALL, fetch = javax.persistence. FetchType .EAGER ... ; fetch=javax.persistence. FetchType .EAGER) @javax.persistence.JoinColumn | |
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 | |
Trouble bug on explorer allowIdWaitMe; @OneToOne(fetch = FetchType .EAGER) private Language mainLanguage; @OneToMany(fetch = FetchType .LAZY) private List languages; public final int getGid() { return gid; } public final void | |
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.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence. FetchType ; import javax ... ; int id; @OneToMany(cascade = CascadeType.ALL, fetch = FetchType | |
How to query for list of lists ?") public class Inspiration implements Serializable { (...) @ElementCollection(fetch = FetchType ... ") @ElementCollection(fetch = FetchType .EAGER) private List reviewSnippets; ... Finally | |
Issue with orphanRemoval and multiple EntityManagers; @OneToMany(cascade=CascadeType.ALL, fetch= FetchType .EAGER, orphanRemoval=true)   | |
Is there a way to set EAGER fetch on all "ToMany" collection relationships Given that the default seems to be FetchType .LAZY for all collections @OneToMany and @ManyToMany. Such as a configuration option. Instead of having to explicitly set fetch in annotation code in every relationship. webel Dr Darren Kelly No. There is no such configuration option, since having EAGER | |
LifeCycle Event with Embeddable classes = FetchType .EAGER) private List barList; @Temporal(TemporalType.TIMESTAMP) private Timestamp | |
Double persist of Entity field with Cascade.ALL bookTitle; @OneToMany(cascade= CascadeType.ALL, fetch= FetchType .EAGER) private List chapters; The Chapter | |
Speeding up reporting queries with size() on list(targetEntity = Product.class, fetch = FetchType .LAZY) private List products; There is only 680 | |
"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 | |
find() cost unreasonable time!="parent",fetch= FetchType .EAGER) protected List Sons; function of checking: private static void | |
Join query problem with new statetment;(...) @ManyToMany(targetEntity = Product.class, fetch = FetchType .LAZY)   | |
TemporalType injection with Calendar using JPA.persistence. FetchType .EAGER) public List getPoints() { return points; } public void setPoints | |
OneToMany and cascade delete problem = Offer.class, mappedBy = "product", fetch = FetchType .LAZY, cascade = CascadeType.ALL) private Set offers | |
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 | |
New to Product & Having An Issue() { return name; } public void setName(String name) { this.name = name; } @OneToMany(fetch= FetchType | |
Beginners questions") @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @OneToMany (fetch= FetchType .LAZY,cascade | |
Bidirectional OneToMany is slow on updated items: @OneToMany(cascade = {CascadeType.ALL}, fetch = FetchType .LAZY/*, mappedBy = "person"*/) private Set | |
Does aggregate function "greatest" work on entity objects? = ChatAttachment.class, fetch = FetchType .EAGER) private List attachments; private boolean isSystem; private | |
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 | |
composite index not used in query we defined a composite index for class Action: @Index(name="ssst",members={"startDate","state","subType","type"}) and an index for the OneToMany @OneToMany(fetch= FetchType .LAZY) @Index public List objectsInCharge = new ArrayList (); on running a query like select count(a) from Action a JOIN | |
ClassCastException after upgrade to 2.3.5_03, cascade=CascadeType.ALL, fetch= FetchType .EAGER) private Object payload; @OneToOne(orphanRemoval=true, cascade=CascadeType.ALL, fetch= FetchType .EAGER) private Map metadata; ... In this case the "payload | |
spuriously objectdb objects have null references definitions are (for the null references above): ... @OneToMany(fetch= FetchType .LAZY) @Index public List actions = new ArrayList (); ... @OneToMany(fetch= FetchType .LAZY) @Index public List childNodes | |
Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence. FetchType ; import ... { @OneToMany(fetch = FetchType .LAZY, cascade = CascadeType.ALL, orphanRemoval = true)   | |
After using the enhancer, Lazy loaded collections are no longer loading. They are set as null, CascadeType.PERSIST}, mappedBy="account", fetch = FetchType .LAZY) @JoinColumn(name = "project_id", unique=true ... ; mappedBy="account", fetch = FetchType .LAZY)   | |
Eager load Map I'm having an issue eager loading a nested map. I've attached @ManyToMany(fetch= FetchType .EAGER) attributes to no avail. If the map is viewed in the debugger or force iterated in the code it loads ok. The attached code attempts to replicate the scenario. Its not an exact match but is the best I | |
Eager Fetch of Map with Entities as Keys id = 1; @OneToMany(fetch= FetchType .EAGER)   | |
Enum fields are set to null and embeddable enum class does not show in explorer(fetch = FetchType . EAGER ) @Enumerated(EnumType. STRING ) private List roles = null ; itsme Martin | |
[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 | |
com.objectdb.o.InternalException: null = FetchType .EAGER) private List insurances = new ArrayList (); public | |
Unexpected exception (Error 990) on find String key; @ElementCollection(fetch= FetchType .EAGER)   |