About SET

forum_thread

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; ... If you just want to eliminate duplicates consider using a Set instead of a List . ObjectDB Support ...

 
forum_thread

Understanding limitations of schema evolution

Hi, I am trying to understand the limitations of schema evolution and have read the material on http://www.objectdb.com/java/jpa/entity/schema as well as the link therein regarding manual schema update when changing a field’s name Yet, i am confused regarding how to handle the case where one re-factors a class by moving one if it's Fields to a different class. Is this case managable? Thanks #1 2014-10-31 12:31 Hi, I am trying to understand the limitations of schema evolution and have read the material on http://www.objectdb.c ...

 
forum_thread

JDO sequences from ORM file

I want to use sequences in JDO without using annotations. Normally this is done with a package-X.orm file, where X is a value passed to the PersistenceManagerFactory as the value of property "mapping". I'm encouraged to see that the JDO zip that comes with ObjectDB includes the DTD/XSD for this type of file, though I can't see a mention of it in the manual. #1 2013-03-12 17:07 I want to use sequences in JDO without using annotations. Normally this is done with a package-X.orm file, where ...

 
tutorial

Step 5: Add a JSP Page

Explains how to add a JSP page that uses JPA to a NetBeans Web Application.... from the request's "guests" attribute that is set by the servlet in the previous step). The next step (and the last in ...

 
forum_thread

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

Dear all, I have a problem with adding items (entities) into other entity list. When the classes are not enhanced, added items are doubled. Here is an example: #1 2011-06-09 08:24 Dear all, I have a problem with adding items (entities) into other entity list. When the classes are not ...

 
forum_thread

Performance in large transactions

Hello, we have a performance problem when we use a large transaction. Let's do exactly the same in several transactions the ObjectDB works much faster. In our use case, we create many new entities and between the creations we call a select query. The execution of the query becomes slower at each iteration. (In the query, we search for an item of type Entity2. However, there is only one entity.)   Pseudocode for the fast and the slow solution FAST: ... myEntityElement. ownerEntity = myEntity ; // set inverse //myEntity.getList().add(myEntityElement); ... myEntityElement. ownerEntity = myEntity ; // set inverse //myEntity.getList().add(myEntityElement); ...

 
forum_thread

Optimistic lock

Hello When I get an optimistic lock on an object, refresh(), start trans and persist?  Will the changes made to the object before the violation be retained or must they be duplicated in the retry code?  Assuming it affects only one object.  tia. #1 2015-02-12 20:31 Hello When I get an optimistic lock on an object, refresh(), start trans and persist?  Will the chan ...

 
forum_thread

Path in tomcat

Hi, If I put the .jar into /opt/Tomcat/lib/, then where the .conf should be in? And the .odb? When I debug the Eclipse web project, I export all things into a .war file. Then I use Tomcat's web deploy tool by the .war file. However, if I put objectdb into the project's /WEB-INF/, I may lost the db when I use Undeploy tool. TIA #1 2011-09-05 09:09 Hi, If I put the .jar into /opt/Tomcat/lib/, then where the .conf should be in? And the .odb? ...

 
forum_thread

ObjectDB Privacy

What privacy does ObjectDB have to offer? I'm watching my firewall and it looks like ObjectDB is pushing my data out? Are there any guarantees that I will retain my privacy when using ObjectDB? #1 2014-09-27 21:12 What privacy does ObjectDB have to offer? I'm watching my firewall and it looks like ObjectDB is pushing my d ...

 
api-jdo

getPersistenceManagerFactory(overrides, name, resourceLoader, pmfLoader)

Returns a PersistenceManagerFactory configured based on the properties stored in the resource at name, or, if not found, returns a PersistenceManagerFactory with the given name or, if not found, returns a javax.persistence.EntityManagerFactory cast to a PersistenceManagerFactory.(Static Method of javax.jdo.JDOHelper)