ObjectDB Database Search
101-150 of 200 resultsError 363 - Failed to read value of inverse relationship.PersistenceException Failed to read the value of field com.pvdc.model.entity.EEvent.town using ... .main(RemoteTestRunner.java:197) Caused by: com.objectdb.o.UserException: Failed to read the value ... : [ObjectDB 2.2.8_01] javax.persistence.PersistenceException Failed to write the value of field property edu | |
How can allow multiple null value in a Unique column. I have a entity Person have 2 fields Name(Unique) and PhoneNumbers. I wants to allow null value ... ; Manoj Manoj Kumar Maharana ObjectDB considers a null value as any other value , so indeed, for a unique field you cannot have more than one null value . If you need multiple null values then  | |
Index on values from a Map Hi, is there a way to put an Index on the values from an Map? For example, if I have a Map like this: private Map mmsContainer and I want to access it fast in following way: Collection values = mmsContainer. values (); Thanks for you help wua Andreas Wurm Indexes are used only in | |
ObjectDB Explorer query error: Unexpected query token 'value' Hi, my entity is named "XXXValue": this has several attributes, one of these is " value ". In query tab, if I do "select value from XXXValue", I get the error . I try "select XXXValue. value from ... .camerini Luca Please try: SELECT v. value FROM XXXValue v or SELECT this. value FROM XXXValue support Support | |
Missing Data on Retrieval (0, null values)', but most Values of the Columns are missing. With a em.clear() inside the Loop, all tables are exported ... Bad - many null and 0 Values . Secound try: List resultList1 = em.createQuery("SELECT d  ... . harald77 Harald The null and 0 values may be the result of lazy loading | |
problem when primary key value is zero and recommendations, in particular there are some primary keys with value == 0. These cause problems for objectDB ... Lister There is nothing wrong with 0 as a primary key value . For example the following code doesn't ... ; } } There is a problem with using the same primary key value for different entity objects | |
Intermittent: "Attempt to reuse an existing primary key value" when persisting a new instance "Attempt to reuse an existing primary key value ". In this particular instance, the error is: Attempt to reuse an existing primary key value (com.x.y.z.UserPassword:1) (error 642) at com.objectdb.jpa ... ; The attempted PK value to be re-used was '1', but the actual last object created has an id | |
List of Enum Values in an entity? Joachim Flashbaer Joachim Beig A rrays of enum values are expected to be supported by ObjectDB. If the entity is enhanced, you may see a null value in the debugger before accessing the field ... Joachim Beig It is unclear. Maybe you see null values for old Guest instances | |
WebService : Failed to get reference value of field using enhanced method.apache.axis2.AxisFault: Failed to commit transaction: Failed to get reference value of field field ... exceptions: org.apache.axis2.AxisFault: Failed to commit transaction: Failed to get reference value ... to get reference value of field using enhanced method" . ClassCast error was only once by me... --- I | |
Error: Failed to write value of field X using reflection (oneToMany relation)() I get an exception: com.objectdb.o._PersistenceException: Failed to write the value of field field ... on the first run. But after that I recieve the "Failed to write the value of field field testodb2 ... You have to change the value of the mappedBy attribute: @OneToMany(mappedBy="cliente") i.e. specify the field | |
"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 ... .java:71) Caused by: com.objectdb.o.UserException: Unsupported auto value type java.lang.String ... Kristijan 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. support Support | |
Failed to commit transaction: Attempt to reuse an existing primary key value (613).RollbackException Failed to commit transaction: Attempt to reuse an existing primary key value ... .EntityExistsException: com.objectdb.o.UserException: Attempt to reuse an existing primary key value | |
Use of sequences to generate field values in JDO I'm trying to use sequences to set field values in JDO. I want to do this in XML metadata to avoid use of annotations. This is an example of what I'm trying: When the code is run I ... .Audit.id) (error 341) Can you describe how I should be using sequences to provide field values ?   | |
Failed to write the value of field using reflection (error 363) on LAZY fetch the value of field field ch.megloff.zeus.model.Modell.articles using reflection (error 363) at ch.megloff ... (ZeusImport.java:45) Caused by: com.objectdb.o.UserException: Failed to write the value of field field ch | |
Merge Issue: Attempt to reuse an existing primary key value an existing primary key value (MyTestCase$MyEntityChild:'child1') at com.objectdb.o ... test case, i am pretty sure that "Attempt to reuse an existing primary key value " on my merge | |
How to avoid NULL values on Embedded entities Hi there. I'm new on this. trying to learn. I'm trying to make a value non nulleable. So, when I try to upload to the DB this field as null, it give me an error. I tried this, but it didn't work: public class Pedido { @Id @GeneratedValue private long id;   | |
selecting objects that have a particular key/value in persistant HashMap that the pMap field of some Person objects has the key/ value pair "location'/'California'. Can I | |
EmbeddedId with Generated field value both solutions I expected I could get a generated value for the field uid by simply adding the documented | |
Failed to read the value of field ... using reflection Hello, we got following exception. Can you explain me, what is the reason of this exception? Caused by: com.objectdb.o.UserException: Failed to read the value of field field com.btc.ep.expression.formula.bl.dmos.Valuation.variableSettings using reflection at com.objectdb.o.MSG.a(MSG.java:77 | |
NullPointerException while setting a new property value to entities from 2 threads: 1. Creating a list of entities, default values are set from imported file 2 | |
KEY() / VALUE() not recognized in JPQL?? Hi! Explorer says "unexpected token" on KEY(..: SELECT FROM individual.IndividualContact $1 LEFT OUTER JOIN $1.profile.title.name m WHERE (KEY(m) = 'deu' AND VALUE (m) LIKE '%Dr%') profile = embedded entity title = referenced entity name = Map thanks, Alex quasado Alexander Adam Yes | |
remove & persist in same transaction => Attempt to reuse an existing primary key value to reuse an existing primary key value (Persist_Remove_Persist$EntityA:1) We created a small | |
Make Column values Case insensitive How do make table column values to case insensitive in object db 2.8.1 version? objdbuser This is currently not supported. A possible workaround is to keep a case-insensitive copy of the relevaant string in a separate field. e.g. in a lowercase format. support Support | |
Failed to read the value of field using reflection I have recently encountered an issue with reading objects: Exception: com.objectdb.o.UserException Message: Failed to read the value of field field Character.stats using reflection Stack Trace: com.objectdb.o.MSG.d(MSG.java:75) com.objectdb.o.UMR.P(UMR.java:934) com.objectdb.o.UMR.B(UMR.java:609 | |
Query with MEMBER OF on hash map values Hello, we want to execute following query: SELECT tc FROM TC tc WHERE ?1 MEMBER OF tc.testMacros. values () But we get an internal ObjectDB exception. It is possible to implement a query for this case at all? @Entity public class TC { @OneToMany Map testMacros = new HashMap(); } btc_es | |
Search through collection for value using indexSearch through collection for value using index | |
removed objects stay with null field values in the referenceremoved objects stay with null field values in the reference | |
GWT RPC is throwing serialization exception when I have object db date valueGWT RPC is throwing serialization exception when I have object db date value | |
Failed to read the value of field using reflection (error 363)Failed to read the value of field using reflection (error 363) | |
Query fails with numerical values > 2^31Query fails with numerical values > 2^31 | |
jakarta.persistence.Tuple Instance Methods X get ( TupleElement tupleElement ) Get the value of the specified tuple element. Parameters: tupleElement - tuple element Returns: value of tuple element. Throws: IllegalArgumentException ... Persistence (JPA) 1.0 X get ( String alias , Class type ) Get the value of the tuple element | |
JPA Lifecycle Events which is the source of the lifecycle event. The argument can have any type that matches the actual value | |
Storing JPA Entity Objects values ). A TransactionRequiredException is thrown if there is no active transaction when persist | |
Date and Time in JPQL and Criteria Queries Date and time expressions may appear in JPQL queries: as date and time literals - e.g. {d '2011-12-31'} , {t '23:59:59'} . as parameters - when date and time values are assigned as arguments. as path expressions - in navigation to persistent date and time fields. as results of predefined | |
What are the main benefits of using ObjectDB? multiple values (even for a simple data structure such as a collection of strings). In addition | |
General Settings and Logging , which specifies when network sockets become obsolete as a result of inactivity. The value is the timeout | |
SSL Configuration The configuration element specifies Secure Sockets Layer (SSL) settings for secure communication in client-server mode, for both the client side and the server side. The default configuration file contains the following element: The enabled attribute of the ssl element (whose value is "true" or | |
jakarta.persistence.TableGenerator = "ID_GEN", pkColumnName = "GEN_KEY", valueColumnName = "GEN_ VALUE ", pkColumnValue = "EMP_ID ... ", valueColumnName = "GEN_ VALUE ", pkColumnValue = "ADDR_ID") @Id @GeneratedValue(strategy = TABLE) int id; ... } See Also: GeneratedValue Since: Jakarta Persistence (JPA) 1.0 The Auto Generated Values article | |
ObjectDB-2.6.9: Failed to commit transaction: Failed to set numeric value of field property Element.id using reflection to set numeric value of field property com.greensoft.objectdb.test.entity.Element.id using reflection ... value of field property com.greensoft.objectdb.test.entity.Element.id using reflection (error 613 ... : com.objectdb.o.UserException: Failed to set numeric value of field property com.greensoft.objectdb | |
jakarta.persistence.DiscriminatorValue Interfaces: Annotation Target: Type Specifies the value of the discriminator column for the annotated ... -specific function is used to generate a value representing the entity type. If the DiscriminatorType is STRING , the discriminator value default is the entity name. The inheritance strategy | |
jakarta.persistence.EntityManager: the value returned by ConnectionFunction.apply .. Throws: PersistenceException - wrapping the checked ... to the current persistence context. Parameters: entity - entity instance Returns: boolean value indicating ... if there is only one column in the select list.) Column values are returned in the order | |
jakarta.persistence.MapKeyJoinColumn and the default values apply. Example 1: @Entity public class Company { @Id int id; ... @OneToMany ... the collection table for the map value . If the join is for a map key for a ManyToMany entity ... , the foreign key column for the map key is in the table of the entity that is the value of the map. Default | |
Merge throw exception "Attempt to reuse an existing primary key value" Hi, if Id = 0 I got javax.persistence.EntityExistsException: com.objectdb.o.UserException: Attempt to reuse an existing primary key value (ru.dz.train.test.ZeroIdTest$MyEntity:0) if Id=1 no exception code : import javax.persistence.*; public class ZeroIdTest { public | |
jakarta.persistence.MapKeyColumn is for an element collection, the map key column is in the collection table for the map value ... that is the value of the map. Defaults to the concatenation of the following: the name of the referencing ... is for an element collection, the name of the collection table for the map value . If the map key | |
jakarta.persistence.EnumType available options for mapping enumerated types. The values of this enumeration specify ... . The ordinal value of an enum instance with no EnumeratedValue field is the value of its Enum.java.lang.Enum ... field as a string. The string value of an enum instance with no EnumeratedValue field is the value | |
jakarta.persistence.AttributeOverride collection whose key and/or value is an embeddable class. When AttributeOverride is applied to a map, " key. " or " value . " must be used to prefix the name of the attribute that is being overridden in order to specify it as part of the map key or map value . To override mappings at multiple levels | |
jakarta.persistence.AttributeConverter , since, with the aid of the converter, its values can be represented as instances of a basic type. A converter ... descriptor. The value of autoApply determines if the converter is automatically applied to persistent fields ... Methods Y convertToDatabaseColumn ( X attribute ) Converts the value stored in the entity attribute | |
jakarta.persistence.CollectionTable of basic or embeddable types. Applied to the collection- valued field or property. By default ... from the attributes of the embeddable class or from the basic type according to the default values ... of the collection- valued field or property. In the case of an embeddable class, the column names are derived | |
Step 2: Entity Class and Persistence Unit fill the fields with arbitrary values to enable it. A new entity class that should represent Guest | |
Step 2: Entity Class and Persistence Unit fill the fields with arbitrary values to enable it. A new entity class that should represent Guest |