Internal Website Search

1-50 of 200 results

Locking in JPA

; property :             For an EntityManagerFactory - using the  createEntityManagerFacotory method:   Map properties = new HashMap();   properties .put("javax.persistence.lock.timeout", 2000);   EntityManagerFactory emf =  

Database Connection using JPA

of the createEntityManagerFactory method takes a map of persistence unit properties as a second parameter: Map properties = new HashMap ();    properties .put("javax.persistence.jdbc.user", "admin");    properties .put("javax.persistence.jdbc.password", "admin");    EntityManagerFactory emf

Externalising persistence.xml properties in Glassfish?

JPA itself and no formal standard for externalising properties (hence why they appear to be relying ... either with Glassfish/JBoss and having environment specific datastore properties being build independent ... holder Source. ${Source} Then in your server config you define every property as an argument

Persistence.createEntityManagerFactory(persistenceUnitName,properties) - JPA Static Method

(   String persistenceUnitName,    Map  properties ) Create and return an EntityManagerFactory for the named persistence unit using the given properties . Parameters: persistenceUnitName the - name of the persistence unit properties Additional - properties to use

javax.persistence.PersistenceContext.properties

JPA Annotation Attribute in javax.persistence.PersistenceContext PersistenceProperty [] properties default {} (Optional) Properties for the container or persistence provider. Vendor specific properties may be included in this set of properties . Properties that are not recognized by a vendor are ignored. Since: JPA 1.0

EntityManager.refresh(entity,lockMode,properties) - JPA Method

;    LockModeType  lockMode,    Map   properties ) Refresh ... it with respect to given lock mode type and with specified properties . If the lock mode type ... property or hint is not recognized, it is silently ignored. Portable applications should not rely

EntityManager.lock(entity,lockMode,properties) - JPA Method

;    LockModeType  lockMode,    Map   properties ) Lock an entity ... and with specified properties . If a pessimistic lock mode type is specified and the entity contains a version ... -specific property or hint is not recognized, it is silently ignored. Portable applications should not

EntityManager.refresh(entity,properties) - JPA Method

;   Map   properties ) Refresh the state of the instance from the database, using the specified properties , and overwriting changes made to the entity, if any. If a vendor-specific property or hint is not recognized, it is silently ignored. Parameters: entity - entity instance

EntityManager.find(entityClass,primaryKey,properties) - JPA Method

;   Object primaryKey,    Map   properties ) Find by primary key, using the specified properties . Search for an entity of the specified class and primary key ... -specific property or hint is not recognized, it is silently ignored. Parameters: entityClass - entity

EntityManager.find(entityClass,primaryKey,lockMode,properties) - JPA Method

; Map   properties ) Find by primary key and lock, using the specified properties . Search ... If a vendor-specific property or hint is not recognized, it is silently ignored. Portable applications ... class primaryKey - primary key lockMode - lock mode properties - standard and vendor-specific

Property fields

Hello   How can I use a Property , such as: javafx.beans. property .BooleanProperty as a field within an entity class? I want to bind a JavaFX CheckBoxTableCell control to the property .   ... type property (i.e. the underlying persistent field of a  BooleanProperty could be java.lang.Boolean ). support Support

How to change properties in urls2.xml?

properties . I have no control on the port and password used. :( Does it exist a way to change urls2.xml properties ? Adding ?port=XXXX at the end of the persistence.xml database local url doesn't work ... the Explorer. It is not used by ObjectDB outside the Explorer, so just changing its properties

NullPointerException while setting a new property value

removeCompleted; //some other @Transient properties // 2 constructors //.. } Can somebody help me? Thank ... We are back, here it is - 2.4.4_04 Just a note - it fails on another property in the Entity. Wed Oct 24 17:30 ... and re-setting some properties to entities from the collection. NPE is thrown at some point

JPA Metamodel API

details on managed classes and persistent fields and properties , similarly to the ability ... (); The ManagedType  interface adds methods for exploring managed fields and properties (which are referred ... an ID class when using multiple ID fields or properties . Finally, the EntityType interface adds

javax.persistence.AccessType.PROPERTY

JPA Enum Constant in javax.persistence.AccessType PROPERTY Property -based access is used. Since: JPA 2.0

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

Wondering if it's possible to add the activation code either: - in persistence.xml - or in a .env file - or system properties dmoshal David Moshal These options are not supported. However, you can embed the configuration file with the activation code as a resource, e.g. by replacing the objectdb

$temp property not evaluated properly when used in log path

I have the following lines in my objectdb.conf file: I don't believe that the $temp property is being evaluated properly here as it creates a new directory "$temp" in the same directory as my execution script. Shouldn't this be logging to the system temp directory? carr.onstott Carr Onstott

Exception when querying Map property with @embedded & Enhancer enabled

Exception when querying Map property with @embedded & Enhancer enabled

how to query by properties of onetomany relations? (Error 990)

how to query by properties of onetomany relations? (Error 990)

JPA Entity Fields

is enhanced (explained in chapter 5 ) or a version field is explicitly defined. Property Access ... properties using get and set methods is also supported. To use property access mode, every non-transient field must have get and set methods based on the Java bean property convention. Property access

Shared (L2) Entity Cache

can also be enabled or disabled using a persistence unit property :         ... ;   ...    The  javax.persistence.sharedCache.mode property can be set ... MyCacheableEntityClass {     ... } Cacheable is an inherited property - every entity

Setting and Tuning of JPA Queries

): For the entire persistence unit - using a persistence.xml   property :      ... ; createEntityManagerFacotory method:   Map properties = new HashMap();   properties .put("javax.persistence ... ;Persistence. createEntityManagerFactory ("pu", properties ); For an EntityManager  - using

Eclipse Public License - v 1.0

property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As ... responsibility to secure any other intellectual property rights needed, if any. For example

GROUP BY and HAVING clauses

properties of generated groups instead of individual objects and fields. The position of a GROUP BY ... individuals. Therefore, the SELECT clause can only use properties of the groups, which include: The properties that are used for grouping (each group has a unique value combination). Aggregate calculations

Chapter 6 - Configuration

explicitly by setting the "objectdb.home" system property : System.setProperty("objectdb.home", "/odb"); // new $objectdb As with any other system property it can also be set as an argument to the JVM ... the "objectdb.conf" system property : System.setProperty("objectdb.conf", "/my/objectdb.conf

JPA Persistence Unit

specify names of managed persistable classes (see below). The property elements specify general properties . JPA 2 defines standard properties for specifying database url, username and password, as

JPA Class Enhancer

NetBeans JVM arguments can be set at the project properties : Right clicking the project Properties Run VM

JPA Metamodel API

The JPA Metamodel API, which is introduced in JPA 2.0, enables examining the classes, fields and properties of the persistent object model, similarly to the Java reflection API. The main interface of the JPA Metamodel API is: Types (mainly classes) and attributes (persistent field and properties

Paths and Types in JPQL and Criteria API

class must contain a persistent field (or property ) with a matching name. The path expression ... the parent path through a persistent field or property ), can be constructed by the get method: // FROM

ObjectDB Object Database Features

types, fields and properties . Object Model & Data Types ObjectDB supports persisting complex Java ... types : HashMap, Hashtable, WeakHashMap, IdentityHashMap, LinkedHashMap, TreeMap and Properties

JPA Persistable Types

, LinkedHashMap , TreeMap and Properties . Arrays (including multi dimensional arrays). Both generic (e

Schema Update

The element specifies renaming a persistent field (or a property ). Both attributes, name  (the old name

Logical Operators in JPQL and Criteria API

, a boolean path (a field or a property ) is represented by Path : Path isInUN = country

JPA Metamodel API Attributes

The following interfaces and enum types represent attributes (persistent fields and properties ) in the JPA Metamodel API: See the Metamodel Attribute Interface Hierarchy section for more details and examples.

Privacy Policy

Protect and defend the rights or property of the Company Prevent or investigate possible wrongdoing in

JPA Annotations for Access Modes

Persistence fields can either be accessed by JPA directly (as fields) or indirectly (as properties and get/set methods). JPA 2 provides an annotation and an enum for setting the access mode: More details are provided in chapter 2 of the ObjectDB manual.

ObjectDB Website - Terms and Conditions of Use

of intellectual property or other violation of rights. Further, ObjectDB Software does not warrant or make any

[ODB1] Chapter 5 - JDO Connections

a PersistenceManagerFactory instance: import java.util. Properties ; import javax.jdo.*; : : Properties properties = new Properties (); properties .setProperty( "javax.jdo.PersistenceManagerFactoryClass", "com.objectdb.jdo.PMF"); properties .setProperty( "javax.jdo.option.ConnectionURL", "local.odb

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

I am developing a J2SE  version "1.8.0_241" application and using property based accessors throughout. @Entity @Access(AccessType. PROPERTY ) public abstract class PlatformTicker implements ... ._PersistenceException: Failed to locate set method for field property domain.PlatformTicker.platformConnector using

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

How to change properties in urls2.xml ?

properties . I have no control on the port and password used. :( Does it exist a way to change urls2.xml properties ? Adding ?port=XXXX at the end of the persistence.xml database local url doesn't work

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

javax.persistence.EntityManager

,  LockModeType  lockMode, Map   properties ) Find by primary key and lock, using the specified properties . Search for an entity of the specified class and primary key and lock ... causes only statement-level rollback If a vendor-specific property or hint is not recognized

[ODB1] Chapter 8 - ObjectDB Server

. If the PersistenceManagerFactory is initialized using a property file, two lines should be added to specify the path ... .objectdb.ssl.truststore.password=ts-pwd Alternatively, the PersistenceManagerFactory 's properties can be set at runtime: Properties properties = new Properties (); : : properties .setProperty( "com

Step 7: Run the Spring Web App

F6 ): You can select the server in the Run category of the project properties window (right click the project node and select Properties to open it). Alternatively you can run the web application using ... and select Properties . In the Platform tab in VM Options enter:- -javaagent:C:\objectdb\bin

[ODB1] Chapter 2 - A Quick Tour

"); 15 System.exit(1); 16 } 17 18 try { 19 // Obtain a database connection: 20 Properties properties = new Properties (); 21 properties .setProperty( 22 "javax.jdo.PersistenceManagerFactoryClass", 23 "com.objectdb.jdo.PMF"); 24 properties .setProperty( 25 "javax.jdo.option.ConnectionURL", "persons.odb

Step 6: Design a BIRT Report Table

the properties table to complete the table design (e.g. change the background color). You may click Preview

Step 1: Create a Java Project

the objectdb.jar file, using: Right Clicking on the Project Properties Java Build Path Libraries Add External

javax.jdo.JDOHelper

on the properties stored in the file at propsFile . This method is equivalent to invoking ... : propsFile - the file containing the Properties Return: the PersistenceManagerFactory Since: JDO 2.0 ... ) Returns a PersistenceManagerFactory configured based on the properties stored in the file

javax.jdo.PersistenceManagerFactory

obtained from the same PersistenceManagerFactory will have the same default properties ... and looked up and used later. Any properties configured will be saved and restored. Once the first ... be configured. If the ConnectionFactory property is set (non- null ) then all other Connection properties