 16 | "main" [ObjectDB 2.3.2] javax.persistence.PersistenceException
Unsupported auto value type java.lang ... (NetworkInformationDatabase.java:71)
Caused by: com.objectdb.o.UserException: Unsupported auto value type java.lang.String ... ;
You cannot use @GeneratedValue for string Id only for numeric Ids. Id fields whose type is string have to be assigned a value by the application. kiki |
 16 | The error: Type User is not found (error 301) occurs when I query the db for a type before any instances of that type have been persisted, e.g.:
return em.createQuery ("SELECT a FROM User a").getResultList (); What I was expecting was an empty list, not an error. Is there some enhancement |
 16 | you can persist any Serializable type by setting the configuration. There is no point in persisting most of the non serializable types such as Thread, because when retrieved from the database it will not ... any collections either. If this feature was in place it wouldn't matter what the object type is, surely? ThreaT |
 16 | Hi, Is there a reason why we can't persist an object with a field of type EnumMap in ObjectDB ... type if you enable this ability in the configuration. But using this feature is not recommended. ObjectDB provides better support (i.e. more efficient and portable) for specific types (including collections and maps), based on the JPA specification. EKK |
 15 |
Result expressions that represent anything but entity objects (e.g. values of system types ... .get("currency")).distinct(true);
The select method takes one argument of type Selection and sets ... of the multiselect method depends on the query result type (as set when CriteriaQuery is instantiated |
 15 | , but the version of Query returns a result list of a raw type (non generic) instead of a parameterized (generic) type:
Query query = em.createQuery("SELECT c FROM Country c");
List results = query.getResultList(); An attempt to cast the above results to a parameterized type (List |
 15 | should be used mainly when the query result type is unknown or when a query returns polymorphic ... result type is expected queries should usually use the TypedQuery interface. It is easier to run queries and process the query results in a type safe manner when using the TypedQuery interface |
 15 | at the FROM clause level. JPA 2, however, adds support for filtering instances of specific types at the WHERE clause level by using a type expression. For example, in the following query, c iterates ... variables represent iteration over all the database objects of a specified entity type. JPQL provides |
 15 | a value of one of the following persistable types: Primitive types: boolean, byte, short, char, int, long ... , java.sql.Date, java.sql.Time, java.sql.Timestamp. Any enum type. Reference to an entity object. Arrays and collections that contain values of the above types (including null). Indexes |
 15 | .o.UserException: Failed to generate dynamic type Entities.AbstractLong
at com.objectdb.o.MSG.d(MSG ... .loadClass(ClassLoader.java:357)
... 17 more
[ObjectDB 2.6.1_05] Failed to generate dynamic type |