ObjectDB Database Search

101-150 of 200 results

Extra uninitialised entities spawned on merge()

relationship Element owner - List ownedElements , and Example is a subclass entity with a relationship ... ;       Example e = new Example (root, " example ");     ... ; }     @Entity     static public class Example extends Element {  

Remove a modified entity cause an optimistic lock exception

Hello, the following examples load and modify an entity, and load and remove the same entity. The first example 'SetAndRemoveIssue.java' is a simple java program which executes without errors. The second example is an OSGi program which fails with an optimistic lock exception. Both examples

InternalError on multiple AND and JOIN Query

] ------------------------------------------------------------------------ [INFO] Building Example Objectdb ... ] Deleting directory /home/pedwards/CONTEXTSPACE_workarea/objectdb_ example /target [INFO ... _workarea/objectdb_ example /target/classes [INFO] [resources:testResources {execution: default

Update Entity references if we change the type of an entity

. As example (like in the attached example ): We have an EntityA that have a reference to an EntityB. But now we introduced as example a new Entity NewKindOfEntityB. And we have a defined logic ... example to demonstrate the scenario is attached. btc_es BTC EmbeddedSystems The example contained

Problem with byte arrays in JDO - internal exception

; import javax.jdo.Query; import spiffy.test.model. Example ; /** * * @author steve */ public class ... (); Query query = pm.newQuery( Example .class); query.deletePersistentAll(); pm.currentTransaction().commit(); pm.currentTransaction().begin(); Example example1 = new Example (); example1.setId(1); example1

Problem with byte arrays in JDO - ClassCastException

.PersistenceManagerFactory; import javax.jdo.Query; import spiffy.test.model. Example ; /** * * @author steve ... ;    Query query = pm.newQuery( Example .class);         ... ;     Example example1 = new Example ();       

Inserted entities with strings as keys and indices needs more and more ram memory in comparing to primitive integers as keys and indices

? See both examples . btc_es BTC EmbeddedSystems Correction. The case with strings as primary key ... and are processed faster. support Support Thank you for the clarification. The example with long keys needs round about 750 MB RAM memory. The example with string keys needs round about 1,5 GB RAM memory

Explorer in 2.3

to enter a Java expression into a field. For example , suppose you have a User entity with a password ... , on the other hand, is quite useful during development when I want to see examples of data, but I don't ... only interested in seeing an example of the data, rather than all of it.   For #5 - I was talking

AnnotationRef jakarta.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 {@snippet : See Also: ForeignKey Since: JPA 1.0 Public Annotation Attributes

AnnotationRef jakarta.persistence.MapKeyClass

and vice versa. Example 1: {@snippet : See Also: ElementCollection OneToMany ManyToMany Since: JPA

AnnotationRef jakarta.persistence.ManyToOne

embedded field or property. Example 1: {@snippet : Since: JPA 1.0 Public Annotation Attributes

AnnotationRef jakarta.persistence.EnumeratedValue

a distinct value for each value of the enum type. Example : {@snippet : enum Status { OPEN(0), CLOSED(1

AnnotationRef jakarta.persistence.SequenceGenerator

are determined by the members of the package SequenceGenerator annotation. Example : {@snippet : Since: JPA 1

AnnotationRef jakarta.persistence.Basic

or property may be specified using the Column annotation. Example 1: {@snippet : Since: JPA 1.0

AnnotationRef jakarta.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 are named the same in all tables. {@snippet : Since: JPA 1.0 Public Annotation Attributes

AnnotationRef jakarta.persistence.ColumnResult

this annotation in the metadata. Example : {@snippet : Query q = em.createNativeQuery( "SELECT o.id AS

AnnotationRef jakarta.persistence.Transient

JPA Annotation Transient Target: METHOD, FIELD Implemented Interfaces: Annotation Specifies that the annotated property or field is not persistent. May annotate a property or field of an entity class, mapped superclass, or embeddable class. Example : {@snippet : Since: JPA 1.0 This annotation is a marker annotation (with no attributes).

AnnotationRef jakarta.persistence.SecondaryTable

key columns of the primary table. Example 1: Single secondary table with a single primary key

AnnotationRef jakarta.persistence.Temporal

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

AnnotationRef jakarta.persistence.OrderColumn

. Example : {@snippet : See Also: OrderBy Since: JPA 2.0 Public Annotation Attributes String

AnnotationAttrRef jakarta.persistence.Column.length

JPA Annotation Attribute in jakarta.persistence.Column int length default 255 (Optional) The column length. Applies only to columns whose type is parameterized by length, for example , varchar or varbinary types. Since: JPA 1.0

InterfaceRef jakarta.persistence.criteria.From

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

AnnotationRef jakarta.persistence.AttributeOverrides

JPA Annotation AttributeOverrides Target: TYPE, METHOD, FIELD Implemented Interfaces: Annotation Used to override mappings of multiple properties or fields. Example : {@snippet : See Also: AttributeOverride Since: JPA 1.0 Public Annotation Attributes AttributeOverride [] value default null

AnnotationRef jakarta.persistence.AttributeOverride

. If AttributeOverride is not specified, the column is mapped the same as in the original mapping. Example 1

AnnotationRef jakarta.persistence.GeneratedValue

. Use of the GeneratedValue annotation for derived primary keys is not supported. Example 1: {@snippet

AnnotationRef jakarta.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 : {@snippet : Query q = em.createNativeQuery( "SELECT o.id AS order

AnnotationRef jakarta.persistence.ForeignKey

. For example , it might be similar to the following: FOREIGN KEY ( {, } ... ) REFERENCES

AnnotationRef jakarta.persistence.Enumerated

; otherwise, the enumerated type is taken to be EnumType.ORDINAL . Example : public enum EmployeeStatus {FULL_TIME

AnnotationRef jakarta.persistence.DiscriminatorColumn

; and the discriminator type to DiscriminatorType.STRING . Example : {@snippet : See Also: DiscriminatorValue

AnnotationRef jakarta.persistence.SqlResultSetMapping

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

EnumRef jakarta.persistence.FetchType

. Example : {@snippet : See Also: Basic ElementCollection ManyToMany OneToMany ManyToOne OneToOne Since: JPA

AnnotationAttrRef jakarta.persistence.Convert.attributeName

JPA Annotation Attribute in jakarta.persistence.Convert String attributeName default "" A name or period-separated path identifying the converted attribute relative to the annotated program element. For example : if an plain is annotated @Convert(attributeName = "startDate"

AnnotationRef jakarta.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 : {@snippet : Since: JPA 1.0 Public Annotation Attributes String[] columnNames default null (Required) The names

InterfaceRef jakarta.persistence.criteria.Path

the type resulting from the get operation in order to avoid the use of Path variables. For example

AnnotationRef jakarta.persistence.ConstructorResult

detached state, depending on whether a primary key is retrieved for the constructed object. Example

AnnotationRef jakarta.persistence.JoinColumns

. Example : {@snippet : See Also: JoinColumn ForeignKey Since: JPA 1.0 Public Annotation Attributes

AnnotationRef jakarta.persistence.MapsId

referenced by the relationship, the value attribute is not specified. In this example , the parent entity

AnnotationRef jakarta.persistence.JoinColumn

JPA Annotation JoinColumn Target: METHOD, FIELD Implemented Interfaces: Annotation Specifies a column for joining an entity association or element collection. If the JoinColumn annotation itself is defaulted, a single join column is assumed and the default values apply. Example : {@snippet

AnnotationRef jakarta.persistence.MappedSuperclass

annotations or corresponding XML elements. Example : Concrete class as a mapped superclass {@snippet

AnnotationRef jakarta.persistence.IdClass

. The primary key type does not itself need to be annotated. Example : {@snippet : @IdClass(EmployeePK

AnnotationRef jakarta.persistence.Inheritance

class hierarchy, the SINGLE_TABLE mapping strategy is used. Example : {@snippet

AnnotationRef jakarta.persistence.Embedded

by the embeddable class. Example : {@snippet : See Also: Embeddable AttributeOverride

AnnotationRef jakarta.persistence.Embeddable

. Example 1: {@snippet : See Also: Embedded EmbeddedId Since: JPA 1.0 The JPA Persistable Types

AnnotationRef jakarta.persistence.MapKeyTemporal

, OneToMany , or ManyToMany annotation. Example : {@snippet : Since: JPA 2.0 Public Annotation

AnnotationRef jakarta.persistence.Id

property or field. Example : {@snippet : See Also: Column GeneratedValue EmbeddedId PersistenceUnitUtil

AnnotationRef jakarta.persistence.EmbeddedId

key type are not supported. Example 1: {@snippet : See Also: Embeddable MapsId IdClass Since: JPA 1.0

AnnotationRef jakarta.persistence.DiscriminatorValue

the hierarchy. Example : {@snippet : See Also: DiscriminatorColumn Since: JPA 1.0 Public Annotation

AnnotationRef jakarta.persistence.PrimaryKeyJoinColumn

to have the same names as the primary key columns of the primary table of the superclass. Example : Customer

CriteriaQuery.select(selection) - JPA Method

type is specified. For example : CriteriaQuery q = cb.createQuery(String.class); Root order = q.from

InterfaceRef jakarta.persistence.criteria.CriteriaQuery

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