About types

91-100 of 200Refresh
Forum
16

"Unsupported auto value type java.lang.String" when persisting new instance

"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
Forum
16

Type xxx is not found (error 301)

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
Issue
16

Unlimited JPA Persistable Types

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
Forum
16

Why can't we persist an object with a field of type EnumMap in ObjectDB?

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
Manual
15

SELECT clause (JPQL / Criteria API)

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
Manual
15

Running JPA Queries

, 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
Manual
15

JPA Query API

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
Manual
15

FROM clause (JPQL / Criteria API)

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
Manual
15

Index Definition

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
Forum
15

com.objectdb.o.UserException: Failed to generate dynamic type

.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