Home » Search

About in

191-200 of 200Refresh
Forum
8

How to Remove records from many to many relationship tables in JPA

transportationEvents = new ArrayList(); .... } here in ... _Conclusion here my requirement is i need to delete  records in both tables (TransportationEvent ... ". The conflict occurred in database "ECT", table "dbo.TransportationEvent_Conclusion", column 'conclusions_id
Forum
8

Is named-query supported in orm.xml

I prefer to keep custom JPQL named queries in an external file, e.g. orm.xml, rather than in ... , probably because of the location of the named-query element in the XML file. Maybe EclipseLink is more flexible and doesn't enforce the formal schema. Global named queries should be defined in
Forum
8

JDO @Index in JPA?

, which I know that it's not available in JPA, but ObjectDB works with JDO as well. Question1: will adding JDO @Index in a JPA entity have any effect or I have to switch that entity to JDO? Question2: switching entities from JPA to JDO can happen when there is already data in the database? Or do I
Forum
8

JPQL query to get entities that does not have a child entity in their child entities

JobEntity J, IN(J.statuses) JS WHERE " +     "J.startTime >=:timeStampBefore AND J.startTime ... ( name = "findCanceledJobsBetweenTimeIntervals",   query = "SELECT J FROM JobEntity J, IN(J ... : @NamedQuery( name = "findFailedJobsBetweenTimeIntervals",   query = "SELECT J FROM JobEntity J, IN(J
Forum
8

Multi selection and distinct in a criteria query

relevant examples in the manual.   Ok yes I am aware of that sorry ;) What I was trying to say.. how can I restrict the DISTINCT to the first selection element in my tuple selection only? I.e. I don't ... without troubles)   Alex I am afraid it is not supported neither in JPQL nor in criteria queries
Forum
8

ObjectDB Enhancer Tool in Java 9

location, which is not valid in a Java module environment. Example command: java -Dobjectdb.conf ... .main(Enhancer.java:32) Exception in thread "main" java.lang.ExceptionInInitializerError at com ... :32) Caused by: com.objectdb.o.UserException: Invalid configuration in 'internal' - Check
Forum
8

Possible issue for JPQL IN expression

Possible issue for JPQL IN expression with a set of more than one string literals values in the path expression. Error: Exception in thread "main" [ObjectDB 2.3.7_10] SELECT e FROM MyEntity e WHERE e.country IN ('US' ==> , <==  'SP', 'UK') javax.persistence.PersistenceException Unexpected query
Forum
8

remove() and persist() in same transaction => Attempt to reuse an existing primary key value

Hello Support, in our configuration (FlushModeType.AUTO) is the execution of  em.find(Entity.class ... to the existing otherwise we create it.   Now we got the problem that we try to do two thinks in the same ... .   Is it expected that the commands not executed in the order they are pushed to the context or
Forum
8

removed objects stay with null field values in the reference

(); When we remove an object that is in this relationship (workflow), the object stays in ... , in addition to deleting it. However, if the set is defined as mapped by, it will be updated ... is still in the database and loaded by a subsequent lazy loading ? No, after deleting an object it does not
Forum
8

Bug with unique constraint exception not resulting in transaction roll back

I'm using ObjectDB 2.5.6_02 and running into a bug with a JDO @Unique constraint.  I'm using JPA in ... both entities. This could happen if the operation is spread over more than one transaction. In a managed environment, in which transactions are started and committed by the application server and not