About main

manual

[ODB1] Chapter 3 - Persistent Classes

Explains what a persistence capable class is and which types are supported by JDO.... (and also from the command line) is to add a new simple main class to a project that applies on the fly enhancement: package test ;   /** Additional main - On the Fly JDO Enhancer */ public class eMain { ...

 
issue

Issue with TYPE expression in Criteria API

Find attached project using latest 2.3.4_03 odb still causes:   ... com.test.model.Customer Exception in thread "main" [ObjectDB 2.3.4_03] javax.persistence.PersistenceException Attempt to ... com.test.TestRun.main(TestRun.java:28) Caused by: com.objectdb.o.UserException: Attempt to store ... I112 {   public static void main ( String [ ] args ) { ...

 
doc

java.lang.Throwable

The Throwable class is the superclass of all errors and exceptions in the Java language.(Class of java.langClass Throwable)

 
forum_thread

How to package orm.xml when using EJB in WAR?

Hi, I have database utility classes in one project, the id's use sequences declared in an orm.xml file for example: ... both persistence.xml and orm.xml are located in src/main/resources/META-INF and Maven correctly copies META-INF and all contents ... work-around seems to be to add a copy of orm.xml into src/main/resources/META-INF of the web project that depends on the EJB .. but ...

 
forum_thread

Exception when querying Map property with @embedded & Enhancer enabled

Hi, I have the following test class that is failing when the enhancer is enabled, resulting in the error 'Failed to write the value of field field TestEmbeddableMap$MyAttributeItem.id using enhanced method.', if I disable the enhancement the test works as expected, and returns the expected MyEntity2 Thanks   ... { public static void main ( String [ ] args ) { ...     Exception in thread "main" [ObjectDB 2.6.4_03] javax.persistence.PersistenceException Failed to ... TestEmbeddableMap.main(TestEmbeddableMap.java:40) Caused by: com.objectdb.o.UserException: Failed ...

 
issue

JPQL support for mapped by (inverse) collections

As discussed and demonstrated in this forum thread, collection methods (IS EMPTY, SIZE, MEMBER OF, IN) are not supported for mapped by (inverse) collections.   ... I146 {   public static void main ( String [ ] args ) {   ... throws the following exception: Exception in thread "main" [ObjectDB 2.x] SELECT a FROM A a WHERE a. ==> list <==  IS ...

 
forum_thread

persisting object with long[][] arrays of array

Hi, I have an object I am trying to persist (java) - It has several fields of type long[][]. It is taking very long to persist and sometimes never finish - it hangs on getTransaction().commit(); Here is the object: ... ret ; } public static void main ( String [ ] args ) { ... ret ; } public static void main ( String [ ] args ) { ...

 
tutorial

Step 6: Set the Spring XML

Explains how to set XML in an Eclipse Spring MVC JPA web application project.... file. Open the  web.xml file (under src/main/webapp/WEB-INF) in a text editor (by right clicking and selecting  Open ... Next . The parent folder should be Guestbook/src/main/webapp/WEB-INF. Enter  spring-servlet as the File Name. ...

 
forum_thread

Eclipse plugin problem (using ObjectDB as a separate bundle)

Hello support, I have seen multiple attempts to correct similar errors as in the title above - the latest in the 2.2.8.01 release of objectDb. However I still get this error.   Here is my scenario (Groovy 1.8 and Eclipse 3.6) used. I have a com.epimss.lab.data.toxicology.TherapeauticDrugScreenRqst. Nested in this class are the following two classes: com.epimss.lab.data.misc.OtherRqst and com.epimss.lab.data.misc.RequestDateAndNumber. ... Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at ...

 
forum_thread

Problem with distinct select, order by and equivalent alias/attribute path

Hi, while working with a (standard-)JPA-query generating framework we run into an exception when ordering the results of some projection when the order by expression is different (though logically equivalent) to the projection expression. Here is the example: ... Benjamin Klink, SOLVIT GmbH */ public class Main {   private static final ... ) ;   public static void main ( String [ ] args ) { ... de.solvit.objectdbtest.Main.main(Main.java:105) Caused by: com.objectdb.o.UserException: Invalid order ...