About main

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 ...

 
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

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 ...

 
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 { ...

 
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

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 ) { ...

 
forum_thread

Problem with Criteria Querys

Hi, i am having problems running following code...   ... {   public static void main ( String [ ] args ) { ... me following error message: Exception in thread "main" java.lang.Error: Unresolved compilation problems: The method ... ParameterExpression<Double>) at MyTestCase.main(MyTestCase.java:30) Please help... ...

 
manual

JPA Query Structure (JPQL / Criteria)

Explains the structure of a JPQL query, which consists of 6 clauses: SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY.... many developers are already familiar with it. The main difference between SQL and JPQL is that SQL works with relational database ...

 
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 ...

 
api-jpa

JPA Metamodel API

Reference (JavaDoc) of the JPA Metamodel API, including all the type and attribute interfaces.... model, similarly to the Java reflection API. The main interface of the JPA Metamodel API is: ...