ObjectDB Database Search

51-100 of 200 results

Pessimistic Lock Timeouts setting

.objectdb.o._LockTimeoutException: Write lock cannot be granted for a.b.c.d.EE#150. irrespective if I set ... setting a shared lock in the EJB could get around this, but this would be global and impact all threads ... on stale updates. Willks William Support of pessimistic lock timeout  setting ( javax.persistence

DB Doctor sets type to "unknown" for new fields

to the schema as expected, however their type is set to unknown - we were expecting Boolean. The attached ... ) is set to unknown. Both are defined as Boolean in Java code. As a result, update operations ... like the following fail to change the value from null to false: UPDATE RecordingMetaData AS r SET r

Setting temp directory location in ObjectDB

.conf file. I am using JDO and setting the persistenceManager as follow properties.setProperty("javax ... , how can i set the temp directory using my java class  e.g  setting through  ... directory where fileName.odb is located. But i want to set the tempority folder location

Understanding Database max-threads objectdb.conf Settings Option

(attached to forum thread mentioned above), I set  Database max-threads.  In the documentation, it was not completely clear to me if this setting controlled how many internal threads ObjectDB uses, or if ObjectDB is doing some sort of queue/locking whose depth is determined by this setting

"Failed to serialize instance" of Set problem

, mappedBy="parent") private Set abstractContainers = com.google.common.collect. Sets ... of com.google.common.collect. Sets $SetFromMap - field xxx.AbstractContainer.abstractContainers at com ... Vladimir Tsichevski Maybe the set contains objects that cannot be serialized. Check the full stack trace

JPA query of a Set of terms

. ie. Set terms;     // the set is filled with SearchTerm objects ...   any term should be simpler: Set terms; // the set is filled with SearchTerm objects

best practice for configuration settings

setting ? synchronized there is no documentation about this setting , what does it do/mean ? hgzwicker Hans ... settings under the real conditions. If synchronized is true requests to the database are synchronized

ManyToMany Set is null

")     private Set contracts = new HashSet (); ---------- @Entity public class Contract ... = "contracts")     private Set persons = new HashSet (); [...] itsme Martin Petzold

-XMX settings recommendation

The default is 256M  what is the recommended settings based on?  It is the size of the DB? number of connections?  If the DB has over 200GB of data and max connection of 400 then will I need to make this settings higher?  Thanks. Trianglehead Json Error There is no magic

Fetch Set from DB only works on debug mode

I have a class A, that contains a LinkedHashSet of  another class named B. When I try to fetch that hash set , it returns a null pointer. BUT, when I run the program in debug mode, it works fine ... the EntityManager . In debug mode, by examining the set you load the data before closing the  EntityManager

Objectdb Server Mode set up with glassfish

Hi I'm new to Java, glassfish and objectdb, so please forgive my ignorance. I have a glassfish server working with the embeded mode of objectdb. I now want to set up objectdb in server mode. I ... my project ? How do I configure my persitence.xml file ? Do I need to set up something in Glassfish

Is there a way to set EAGER fetch on all "ToMany" collection relationships

Given that the default seems to be FetchType.LAZY for all collections @OneToMany and @ManyToMany. Such as a configuration option. Instead of having to explicitly set fetch in annotation code in every relationship. webel Dr Darren Kelly No. There is no such configuration option, since having EAGER

Set timeout for BatchQueryItr

( unknown source ) xirt Sylvain You can set a query execution timeout as a query hint . The many

UPDATE query to set a new field after schema change

I've added a new property/field to one of my objects and want to set the value of this (boolean) property to false for all existing entities in the DB. I tried to execute an update statement with the Explorer tool. The statement ends and tells me that 1000 entities have been updated. I then save

Global way to set Lazy-loading fetch functionality for all the fields

if neither objectdb nor JPA offers it). ouba64 Ouba Mahamane Lazy / Eager can only be set locally

client server set up and load

is less affected by number of users and more by the actual activity, how indexes are set , etc. support Support

Unable to update a OneToMany Set

Unable to update a OneToMany Set

setting activation code in persistence.xml or env file or system properties

setting activation code in persistence.xml or env file or system properties

Iterating over large result set

Iterating over large result set

JPA Criteria Queries

, set new attribute values, and restrict the scope with a WHERE clause. Use this interface to define

What's next?

two chapters cover tools and settings that are specific to ObjectDB:

com.objectdb.o._PersistenceException: Failed to locate set method for field property using reflection

. set (platformConnector); } ... } I get an exception thrown  when trying to create an entity ... ._PersistenceException: Failed to locate set method for field property domain.PlatformTicker.platformConnector using ... ObjectDB's. However the error message Failed to locate set method for field property... is misleading

Enum fields are set to null and embeddable enum class does not show in explorer

I switched to version 2.8.2 and now it seems that my enum types are not recognized and the field in the related objects is set to null. This is highly critical because it will cause data loss! The enum type is also not listed in the explorer. I am talking about an enum class, which implements

ObjectDb Doctor : Failed to locate set method for field property com.test.Video$VideoId.sourceId using reflection (error 316)

Hello everyone ! I have just launched the ObjectDb Doctor for testing purposes. But while inspecting my base, the Doctor throws me a strange error : [ObjectDB 2.4.6] Invalid ID class com.test.Video$VideoId for type com.test.Video (Failed to locate set method for field property com.test.Video

Object creation in the Explorer requires automatically set primary keys

The feature of creating new objects in the Explorer is currently supported only for entity classes that have primary keys that are set automatically. support Support

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

jakarta.persistence.ManyToMany

: @ManyToMany @JoinTable(name = "CUST_PHONES") public Set getPhones() { return phones; } // In PhoneNumber class: @ManyToMany(mappedBy = "phones") public Set getCustomers() { return customers; } Example 2: // In Customer class: @ManyToMany(targetEntity = com.acme.PhoneNumber.class) public Set

jakarta.persistence.FlushModeType

within a transaction, if AUTO is set on the Query or TypedQuery object, or if the flush mode setting for the persistence context is AUTO (the default) and a flush mode setting has not been specified for the Query or ... , if COMMIT is set , the effect of updates made to entities in the persistence context on queries

jakarta.persistence.EntityManagerFactory

of EntityManager . A persistence unit defines the set of all classes that are related or grouped by ... . This includes configuration information such as max results, hints, flush mode, lock mode, result set ... , information that can be set by means of the query APIs can be overridden. Information

jakarta.persistence.metamodel.SetAttribute

: - The type the represented Set belongs to - The element type of the represented Set Super Interfaces: PluralAttribute , Attribute , Bindable Instances of the type SetAttribute represent persistent Set ... a Collection , Set , List , or Map ). Inherited from Attribute Returns: boolean indicating

jakarta.persistence.metamodel.Metamodel

. Since: Jakarta Persistence (JPA) 1.0 Set getEmbeddables () Return the metamodel embeddable types. Returns am empty set if there are no embeddable types. Returns: the metamodel embeddable types. Since: Jakarta Persistence (JPA) 1.0 Set getEntities () Return the metamodel entity types. Returns: the metamodel

jakarta.persistence.StoredProcedureQuery.getSingleResult()

getSingleResult() Retrieve a single result from the next result set . The provider will call execute on the query if needed. A REF_CURSOR result set , if any, is retrieved in the order the REF_CURSOR parameter was registered with the query. Returns: the result or null if the next item is not a result set . Throws

jakarta.persistence.StoredProcedureQuery.getSingleResultOrNull()

getSingleResultOrNull() Retrieve a single result from the next result set . The provider will call execute on the query if needed. A REF_CURSOR result set , if any, is retrieved in the order the REF_CURSOR parameter was registered with the query. Returns: the result or null if the next item is not a result set or

jakarta.persistence.criteria.Nulls

Specifies the precedence of null values within query result sets . See Also: CriteriaBuilder.asc ... Constants FIRST Null values occur at the beginning of the result set . Since: Jakarta Persistence (JPA) 1.0 LAST Null values occur at the end of the result set . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.StoredProcedureQuery.getResultList()

() Retrieve the list of results from the next result set . The provider will call execute on the query if needed. A REF_CURSOR result set , if any, is retrieved in the order the REF_CURSOR parameter was registered with the query. Returns: a list of the results or null is the next item is not a result set

jakarta.persistence.metamodel.ManagedType.getPluralAttributes()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType Set getPluralAttributes() Return all multi-valued attributes (Collection-, Set -, List-, and Map-valued attributes) of the managed type. Returns empty set if the managed type has no multi-valued attributes. Returns

jakarta.persistence.metamodel.ManagedType.getDeclaredPluralAttributes()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType Set getDeclaredPluralAttributes() Return all multi-valued attributes (Collection-, Set -, List-, and Map-valued attributes) declared by the managed type. Returns empty set if the managed type has no declared multivalued

jakarta.persistence.criteria.AbstractQuery.getRoots()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.AbstractQuery Set getRoots ... itself, including any subquery roots defined as a result of correlation. Returns an empty set if no roots have been defined. Modifications to the set do not affect the query. Returns: the set of query roots. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.StoredProcedureQuery.execute()

() Return true if the first result corresponds to a result set , and false if it is an update count or ... result corresponds to result set . Throws: PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back. QueryTimeoutException - if the query

jakarta.persistence.StoredProcedureQuery.hasMoreResults()

hasMoreResults() Return true if the next result corresponds to a result set , and false if it is an update count ... if next result corresponds to result set . Throws: PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back. QueryTimeoutException - if the query

jakarta.persistence.EntityManager.createStoredProcedureQuery(String,String...)

must be specified in the order in which the result sets is returned by the stored procedure invocation. Parameters: resultSetMappings - the names of the result set mappings to be used in mapping result sets returned by the stored procedure procedureName - name of the stored procedure in the database

jakarta.persistence.EntityTransaction

. Since: Jakarta Persistence (JPA) 1.0 void setTimeout ( Integer timeout ) Set the transaction timeout ... that the database server should set the timeout Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.metamodel.PluralAttribute.CollectionType

Map-valued attribute Since: Jakarta Persistence (JPA) 1.0 SET Set -valued attribute Since: Jakarta

jakarta.persistence.criteria.CommonAbstractCriteria.getParameters()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CommonAbstractCriteria Set getParameters() Return the parameters of the query. Returns empty set if there are no parameters. Modifications to the set do not affect the query. Returns: the query parameters. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Subquery.getCorrelatedJoins()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.Subquery Set getCorrelatedJoins() Return the correlated joins of the subquery. Returns empty set if the subquery has no correlated joins. Modifications to the set do not affect the query. Returns: the correlated joins of the subquery. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TypedQuery.getResultStream()

and only the statement is rolled back. PersistenceException - if the query execution exceeds the query timeout value set ... other than NONE has been set and there is no transaction or the persistence context has not been joined to the transaction. QueryTimeoutException - if the query execution exceeds the query timeout value set

jakarta.persistence.TypedQuery.getSingleResult()

timeout value set and only the statement is rolled back. PessimisticLockException - if pessimistic locking ... . PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back. TransactionRequiredException - if a lock mode other than NONE has been set

jakarta.persistence.TypedQuery.getSingleResultOrNull()

- if the query execution exceeds the query timeout value set and only the statement is rolled ... back. PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back. TransactionRequiredException - if a lock mode other than NONE has been set

Step 5: Design a BIRT Report Chart

these fields for content assistant) and click Next . In the [Format Chart] tab you can set the chart title

Step 2: Entity Class and Persistence Unit

JPA persistence unit (with default settings ) was generated in a persistence.xml file that was added