ObjectDB Database Search

101-150 of 200 results

Error 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

Literals in JPQL and Criteria Queries

Literals in JPQL, as in Java, represent constant values . JPQL supports various types of literals ... (e.g. 'abc' ), enum literals (e.g. mypackage.MyEnum.MY_ VALUE ) and entity type literals (e.g. Country ... parameter values . Literals should only be embedded in JPQL queries when a single constant value

Shared (L2) Entity Cache

the cache a positive value has to be specified. Persistence Unit Settings The shared cache ... to one of the following values : NONE - cache is disabled. ENABLE_SELECTIVE - cache is disabled ... . UNSPECIFIED - handled differently by different JPA providers. In ObjectDB the UNSPECIFIED value

Paths and Types in JPQL and Criteria API

. But more often they are used in JPQL path expressions that navigate to values of simple types (number, boolean, string, date). Simple type values are more useful in queries. They have special operators ... and values . For example - c.capital , where c represents a Country entity object uses the capital

SELECT clause (JPQL / Criteria API)

path expressions , such as c.name , in query results is referred to as projection. The field values ... of the above query are received as a list of String values : TypedQuery query = em. createQuery ( "SELECT ... value path expressions can be used in the SELECT clause. Collection and map fields cannot be included

Chapter 6 - Configuration

directory. ObjectDB Home ($objectdb) The value of $objectdb (the ObjectDB home directory ... changes the value of $objectdb . For example, in a web application, in which objectdb.jar is located in ... " ... If a configuration file is not found default values are used. General Configuration Considerations The following

Strings in JPQL and Criteria Queries

String values may appear in JPQL queries in various forms: as  string literals - e.g. 'abc' , ''. as parameters - when string values are assigned as arguments. as  path expressions - in ... for 'Denmark' c.name LIKE '%' is always TRUE (for any c.name value ). c.name NOT LIKE '%' is always FALSE

Schema Update

the required name attribute, to the new name. The value of the name attribute must be unqualified (with no package name) because the package name is already specified in the containing element. The value ... ) the new-name value of the containing element is used, if it exists, or if no new-name is specified

Server User List

. For example, a value "192.18.0.0-192.18.194.255,127.0.0.1" allows connecting from any IP address in the range of 192.18.0.0 to 192.18.194.255 , as well as from 127.0.0.1 . The admin attribute (whose value ... server settings using the ObjectDB Explorer . A value of "$default" for the username attribute

ObjectDB Object Database Features

). Map keys and values are indexable. Nested paths inside embedded objects are indexable. Indices ... .lang.BigDecimal. Auto Value Generation Modes (for primary Key fields) Database IDs - automatic ... defined sequences. Application IDs - primary key values are set explicitly by the application. Query

Setting and Tuning of JPA Queries

to be visible to the query. Flush policy in JPA is represented by the FlushModeType enum, which has two values ... ="javax.persistence.query.timeout",      value ="7000")}) For a specific query

JPA Query Structure (JPQL / Criteria)

rather than just field values from database tables, as with SQL. That makes JPQL more object oriented friendly ... , string literals are also case sensitive (e.g. "ORM" and "orm" are different values ). A Minimal JPQL

Defining a JPA Entity Class

of the point in the plane). It is the values of these fields that are stored in the database ... primary keys and automatic sequential value generation . This is a very powerful feature of ObjectDB that is absent from other object oriented databases.

JPA Metamodel API

 and its descendant interfaces: SingularAttribute  - represents single value attributes. PluralAttribute  is an ancestor of interfaces that represent multi value attributes

Online Backup

, the backup target could be specified as a String value : Query backupQuery = em.createQuery("objectdb ... is specified as a value for the target parameter it represents a path relative to the ObjectDB home

ORDER BY clause (JPQL / Criteria API)

whose type is comparable (i.e. numbers, strings and date values ) and is derived from the SELECT ... for which all the previous order expressions produce the same values . The following query returns

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

InterfaceRef jakarta.persistence.criteria.CriteriaBuilder

( Expression  x) Create an expression that returns the absolute value of its argument. Parameters: x - expression Return: absolute value Since: JPA 2.0 Expression all ( Subquery  subquery) Create ... - valued selection item. Parameters: selections - list of selection items Return: array- valued

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

InterfaceRef jakarta.persistence.StoredProcedureQuery

with the following: The setParameter methods are used to set the values of all required IN and INOUT parameters. It is not required to set the values of stored procedure parameters for which default values ... with output parameter values ). The execute method returns true if the first result is a result set

InterfaceRef jakarta.persistence.metamodel.EmbeddableType

Since: JPA 2.0 CollectionAttribute getCollection (String name) Return the Collection- valued ... the Collection- valued attribute of the managed type that corresponds to the specified name and Java ... getDeclaredCollection (String name) Return the Collection- valued attribute declared by the managed type

InterfaceRef jakarta.persistence.metamodel.ManagedType

(String name) Return the Collection- valued attribute of the managed type that corresponds ...  elementType) Return the Collection- valued attribute of the managed type that corresponds ... CollectionAttribute getDeclaredCollection (String name) Return the Collection- valued attribute

InterfaceRef jakarta.persistence.metamodel.IdentifiableType

(String name) Return the Collection- valued attribute of the managed type that corresponds ... (String name, Class  elementType) Return the Collection- valued attribute of the managed ... - valued attribute declared by the managed type that corresponds to the specified name. Parameters: name

Step 4: Add a Controller Class

public class GuestController { @Autowired private GuestDao guestDao; @RequestMapping( value ="/guest ... a request attribute (whose name is "guestDao" and its value is guestDao ). The next step is 

Step 4: Add a Controller Class

{ @Autowired private GuestDao guestDao; @RequestMapping( value ="/guest") public ModelAndView guestbook ... is "guestDao" and its value is guestDao ). The next step is adding a JSP page that will serve as

Step 4: Create an ObjectDB Data Set

value in a specified range: SELECT p.x as x, p.y as y FROM Point p WHERE p.x BETWEEN :low AND :high Use ... successfully - a new window appears. In the Parameters list specify default values for low   ( 11

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

JDO Predefined ID Classes

instances of MyClass ) can be represented uniquely by StringIdentity , as a combination of a class and a string value .