Internal Website Search

101-150 of 200 results

javax.jdo.JDOUserException Failed to locate field field exampleField using reflection (error 363)

to locate field field com. example .db.BDO.testField using reflection (error 363)     at java.base/java.lang.Thread.run(Thread.java:833) com. example .db_utils.jdo.exception.ConnectionException     at com. example .db_utils.jdo.BasicJDOConnection.persistenceManagerInit

Dependency from enhanced classes to the objectDB library

. We have create a “small” example based on our OSGi Bundle structure. The example contains 7 eclipse projects ... EmbeddedSystems Please provide step by step instructions on how to use this example to get the exception on #1 (or if the example demonstrates a different exception, please describe it in details). support

javax.persistence.Basic

for such a field or property, the default values of the Basic annotation will apply. Example 1: @Basic protected String name; Example 2: @Basic(fetch=LAZY) protected String getName() { return name; } Since: JPA

javax.persistence.SecondaryTables

JPA Annotation SecondaryTables Target: TYPE Implemented Interfaces: Annotation Specifies multiple secondary tables for an entity. Example 1: Multiple secondary tables assuming primary key columns ... (name="EMP_DETAIL"), @SecondaryTable(name="EMP_HIST") }) public class Employee { ... } Example 2

javax.persistence.SecondaryTable

key columns of the primary table. Example 1: Single secondary table with a single primary key ... =@PrimaryKeyJoinColumn(name="CUST_ID")) public class Customer { ... } Example 2: Single secondary table

javax.persistence.GeneratedValue

primary keys. Example 1: @Id @GeneratedValue(strategy=SEQUENCE, generator="CUST_SEQ") @Column(name="CUST_ID") public Long getId() { return id; } Example 2: @Id @GeneratedValue(strategy=TABLE, generator

javax.persistence.JoinColumn

itself is defaulted, a single join column is assumed and the default values apply. Example : @ManyToOne @JoinColumn(name="ADDR_ID") public Address getAddress() { return address; } Example : unidirectional

javax.persistence.EmbeddedId

. Example 1: @EmbeddedId protected EmployeePK empPK; Example 2: @Embeddable public class DependentId

javax.persistence.criteria.CriteriaQuery

from a get or join operation and the query result type is specified. For example : CriteriaQuery q = cb

javax.persistence.ElementCollection

JPA Annotation ElementCollection Target: METHOD, FIELD Implemented Interfaces: Annotation Specifies a collection of instances of a basic type or embeddable class. Must be specified if the collection is to be mapped by means of a collection table. Example : @Entity public class Person { @Id

javax.persistence.AssociationOverrides

JPA Annotation AssociationOverrides Target: TYPE, METHOD, FIELD Implemented Interfaces: Annotation Used to override mappings of multiple relationship properties or fields. Example : @MappedSuperclass public class Employee { @Id protected Integer id; @Version protected Integer version; @ManyToOne

javax.persistence.EntityResult

when insufficient data is available are undefined. Example : Query q = em.createNativeQuery( "SELECT o.id, o

Path.get(attributeName) - JPA Method

variables. For example : CriteriaQuery q = cb.createQuery(Person.class); Root p = q.from(Person.class

javax.persistence.JoinTable

together (owning side first) using an underscore. Example : @JoinTable( name="CUST_PHONE", joinColumns

javax.persistence.Table

. Example : @Entity @Table(name="CUST", schema="RECORDS") public class Customer { ... } Since: JPA 1.0

javax.persistence.CollectionTable

elements apply. Example : @Embeddable public class Address { protected String street; protected String

javax.persistence.MapKeyEnumerated

. Example : public enum ProjectStatus {COMPLETE, DELAYED, CANCELLED, IN_PROGRESS} public enum SalaryRate

javax.persistence.PrimaryKeyJoinColumns

JPA Annotation PrimaryKeyJoinColumns Target: TYPE, METHOD, FIELD Implemented Interfaces: Annotation Groups PrimaryKeyJoinColumn annotations. It is used to map composite foreign keys. Example : ValuedCustomer subclass @Entity @Table(name="VCUST") @DiscriminatorValue("VCUST") @PrimaryKeyJoinColumns

javax.persistence.MapKeyColumn

field or property; "_"; "KEY". Example : @Entity public class Item { @Id int id; ... @ElementCollection

javax.persistence.SequenceGenerator

(across all generator types). Example : @SequenceGenerator(name="EMP_SEQ", allocationSize=25

javax.persistence.ColumnResult

this annotation in the metadata. Example : Query q = em.createNativeQuery( "SELECT o.id AS order_id, " + "o

javax.persistence.Transient

JPA Annotation Transient Target: METHOD, FIELD Implemented Interfaces: Annotation Specifies that the property or field is not persistent. It is used to annotate a property or field of an entity class, mapped superclass, or embeddable class. Example : @Entity public class Employee { @Id int id

javax.persistence.Temporal

(when the element collection value is of such a temporal type. Example : @Temporal(DATE) protected

javax.persistence.OrderColumn

. Example : @Entity public class CreditCard { @Id long ccNumber; @OneToMany // unidirectional @OrderColumn

javax.persistence.criteria.From

order to avoid the use of Path variables. For example : CriteriaQuery q = cb.createQuery(Person.class

javax.persistence.AttributeOverrides

JPA Annotation AttributeOverrides Target: TYPE, METHOD, FIELD Implemented Interfaces: Annotation Used to override mappings of multiple properties or fields. Example : @Embedded @AttributeOverrides({ @AttributeOverride(name="startDate", column=@Column("EMP_START")), @AttributeOverride(name="endDate

javax.persistence.Version

, Integer , short , Short , long , Long , java.sql.Timestamp . Example : @Version @Column(name="OPTLOCK

javax.persistence.FieldResult

JPA Annotation FieldResult Implemented Interfaces: Annotation Used in conjunction with the EntityResult annotation to map columns specified in the SELECT list of a SQL query to the properties or fields of an entity class. Example : Query q = em.createNativeQuery( "SELECT o.id AS order_id, " + "o

javax.persistence.ForeignKey

. For example , this may be similar the following: FOREIGN KEY ( {, }... ) REFERENCES

javax.persistence.Enumerated

or the Enumerated annotation is not used, the EnumType value is assumed to be ORDINAL . Example

javax.persistence.DiscriminatorColumn

" and the discriminator type to DiscriminatorType.STRING . Example : @Entity @Table(name="CUST

javax.persistence.SqlResultSetMapping

JPA Annotation SqlResultSetMapping Target: TYPE Implemented Interfaces: Annotation Specifies the mapping of the result of a native SQL query or stored procedure. Example : Query q = em.createNativeQuery( "SELECT o.id AS order_id, " + "o.quantity AS order_quantity, " + "o.item AS order_item, " + "i

javax.persistence.FetchType

. The implementation is permitted to eagerly fetch data for which the LAZY strategy hint has been specified. Example

javax.persistence.UniqueConstraint

JPA Annotation UniqueConstraint Implemented Interfaces: Annotation Specifies that a unique constraint is to be included in the generated DDL for a primary or secondary table. Example : @Entity @Table( name="EMPLOYEE", uniqueConstraints= @UniqueConstraint(columnNames={"EMP_ID", "EMP_NAME"}) ) public

javax.persistence.criteria.Path

the get operation in order to avoid the use of Path variables. For example : CriteriaQuery q = cb

javax.persistence.ConstructorResult

, depending on whether a primary key is retrieved for the constructed object. Example : Query q = em

javax.persistence.JoinColumns

elements must be specified in each such JoinColumn annotation. Example : @ManyToOne @JoinColumns

javax.jdo.spi.JDOImplHelper

for each key field in the ObjectId. For example , an ObjectId class that has three key fields ( int id ... a call to the field manager for each key field in the ObjectId. For example , an ObjectId class

javax.jdo.Query

the filter expression by explicitly declaring an expression (for example , e1 != e2 ). Rules ... ":". For example , setRange("50, 70"); or setRange(":from, :to"); or setRange("50

javax.jdo.listener.StoreLifecycleListener

, for example during javax.jdo.PersistenceManager.flush or javax.jdo.Transaction.commit . It is called ... ( InstanceLifecycleEvent  event) Invoked whenever a persistent instance is stored, for example

javax.jdo.listener.DeleteLifecycleListener

, for example during javax.jdo.PersistenceManager.deletePersistent . This method is called ... whenever a persistent instance is deleted, for example during javax.jdo.PersistenceManager.deletePersistent

javax.jdo.InstanceCallbacks

over callbacks, for example to allow a class to implement the load callback without implementing any ... the runtime infrastructure of the application. For example , a persistent instance might notify

JDOImplHelper.copyKeyFieldsFromObjectId(pcClass,fm,oid) - JDO Method

in the ObjectId. For example , an ObjectId class that has three key fields ( int id , String name

JDOImplHelper.copyKeyFieldsToObjectId(pcClass,fm,oid) - JDO Method

the ObjectId. For example , an ObjectId class that has three key fields ( int id , String name

javax.jdo.annotations.Persistent.columns

JDO Annotation Attribute in javax.jdo.annotations.Persistent Column [] columns default {} Column definition(s) for this member. Used for mapping multiple columns to the same member, for example relationships with multiple column foreign keys. Since: JDO 2.1

javax.jdo.annotations.Persistent.name

JDO Annotation Attribute in javax.jdo.annotations.Persistent String name default "" Name of the member when this is embedded in another object. The fully-qualified member name is used. For example , "line.point1.x" refers to the member x in class Point that is embedded as member point1 in class

javax.jdo.annotations.Persistent.types

JDO Annotation Attribute in javax.jdo.annotations.Persistent Class[] types default {} Types of the member. Used when the declared member type is a supertype of the actual type that is stored in the member. For example , the declared member type might be an interface type that must contain an object of a concrete type when used for persistence. Since: JDO 2.1

javax.jdo.JDOHelper

application to examine the runtime state of instances. For example , an application can discover

Query.setRange(fromInclToExcl) - JDO Method

identified with a leading ":". For example , setRange("50, 70"); or setRange(":from, :to"); or

Query.setFilter(filter) - JDO Method

declaring an expression (for example , e1 != e2 ). Rules for constructing valid expressions follow