ObjectDB Database Search

1-30 of 30 results

jakarta.persistence.PessimisticLockException

Jakarta Persistence (JPA) Class jakarta.persistence.PessimisticLockException java.lang.Object ∟ java.lang.Throwable ∟ java.lang.Exception ∟ java.lang.RuntimeException ∟ jakarta.persistence.PersistenceException ∟ jakarta.persistence.PessimisticLockException Implemented Interfaces: Serializable

jakarta.persistence.PersistenceUnitTransactionType

Jakarta Persistence (JPA) Enum jakarta.persistence.PersistenceUnitTransactionType java.lang.Object ∟ java.lang.Enum ∟ jakarta.persistence.PersistenceUnitTransactionType Implemented Interfaces: Constable , Comparable , Serializable Enumerates the possible approaches to transaction management in

jakarta.persistence.FlushModeType

Jakarta Persistence (JPA) Enum jakarta.persistence.FlushModeType java.lang.Object ∟ java.lang.Enum ∟ jakarta.persistence.FlushModeType Implemented Interfaces: Constable , Comparable , Serializable Enumerates flush modes recognized by the EntityManager . When queries are executed

jakarta.persistence.GenerationType

Jakarta Persistence (JPA) Enum jakarta.persistence.GenerationType java.lang.Object ∟ java.lang.Enum ∟ jakarta.persistence.GenerationType Implemented Interfaces: Constable , Comparable , Serializable Enumerates the defined primary key generation strategies. See Also: GeneratedValue Since: Jakarta

jakarta.persistence.LockModeType

Jakarta Persistence (JPA) Enum jakarta.persistence.LockModeType java.lang.Object ∟ java.lang.Enum ∟ jakarta.persistence.LockModeType Implemented Interfaces: FindOption , RefreshOption , Constable , Comparable , Serializable Enumerates the kinds of optimistic or pessimistic lock

jakarta.persistence.InheritanceType

Jakarta Persistence (JPA) Enum jakarta.persistence.InheritanceType java.lang.Object ∟ java.lang.Enum ∟ jakarta.persistence.InheritanceType Implemented Interfaces: Constable , Comparable , Serializable Enumerated the options for mapping entity inheritance. See Also: Inheritance.strategy

jakarta.persistence.LockTimeoutException

Jakarta Persistence (JPA) Class jakarta.persistence.LockTimeoutException java.lang.Object ∟ java.lang.Throwable ∟ java.lang.Exception ∟ java.lang.RuntimeException ∟ jakarta.persistence.PersistenceException ∟ jakarta.persistence.LockTimeoutException Implemented Interfaces: Serializable Thrown by

jakarta.persistence.ConstraintMode

Jakarta Persistence (JPA) Enum jakarta.persistence.ConstraintMode java.lang.Object ∟ java.lang.Enum ∟ jakarta.persistence.ConstraintMode Implemented Interfaces: Constable , Comparable , Serializable Used to control the application of a constraint. Since: Jakarta Persistence (JPA) 2.1 Enum

jakarta.persistence.DiscriminatorType

Jakarta Persistence (JPA) Enum jakarta.persistence.DiscriminatorType java.lang.Object ∟ java.lang.Enum ∟ jakarta.persistence.DiscriminatorType Implemented Interfaces: Constable , Comparable , Serializable Defines supported types of the discriminator column. See Also: DiscriminatorColumn

jakarta.persistence.EntityNotFoundException

Jakarta Persistence (JPA) Class jakarta.persistence.EntityNotFoundException java.lang.Object ∟ java.lang.Throwable ∟ java.lang.Exception ∟ java.lang.RuntimeException ∟ jakarta.persistence.PersistenceException ∟ jakarta.persistence.EntityNotFoundException Implemented Interfaces: Serializable Thrown

jakarta.persistence.EntityExistsException

Jakarta Persistence (JPA) Class jakarta.persistence.EntityExistsException java.lang.Object ∟ java.lang.Throwable ∟ java.lang.Exception ∟ java.lang.RuntimeException ∟ jakarta.persistence.PersistenceException ∟ jakarta.persistence.EntityExistsException Implemented Interfaces: Serializable Thrown by

jakarta.persistence.FetchType

Jakarta Persistence (JPA) Enum jakarta.persistence.FetchType java.lang.Object ∟ java.lang.Enum ∟ jakarta.persistence.FetchType Implemented Interfaces: Constable , Comparable , Serializable Defines strategies for fetching data from the database. The EAGER strategy is a requirement

jakarta.persistence.EnumType

Jakarta Persistence (JPA) Enum jakarta.persistence.EnumType java.lang.Object ∟ java.lang.Enum ∟ jakarta.persistence.EnumType Implemented Interfaces: Constable , Comparable , Serializable Enumerates available options for mapping enumerated types. The values of this enumeration specify

Step 2: Entity Class and Persistence Unit

. Serializable ; import java.sql.Date; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity public class Guest implements Serializable { private

Step 2: Define a JPA Entity Class

; import java.io. Serializable ; import javax.persistence.*; @Entity public class Point implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue private long id

Step 2: Define a JPA Entity Class

. Serializable ; import javax.persistence.*; @Entity public class Point implements Serializable { private

JPA inheritance issue with ObjectDB - Field not found in type error

follows: @Entity public class Item implements Serializable , Comparable { boolean retired ... implements Serializable { // ... } @Entity @Inheritance public class Vtm extends PharmaceuticalItem implements Serializable { // ... } I have a JPQL query that looks like this: String jpql = "Select vtm

General Performance Issues Illustrated with a Specific Method

java.io. Serializable ; import java.util.Date; import javax.jdo.annotations.Index; import javax ... public class Client implements Serializable , Identifiable { // @Id @GeneratedValue(strategy ... Class package lk.gov.health.phsp.entity; import java.io. Serializable ; import java.util.Date; import

persisting object with long[][] arrays of array

(); Here is the object: import java.io. Serializable ; import javax.persistence.CascadeType; import javax ... .persistence.OneToMany; @Entity public class TESTObject implements Serializable {     ... Serializable {     private static final long serialVersionUID = 1L;     public

Join query problem with new statetment

Serializable {     private static final long serialVersionUID = 1L;      ... BaseEntity implements Serializable , Convertable {     @GeneratedValue(strategy ... , so only important parts): @Entity public class Product extends BaseEntity implements Serializable

Does ObjectDB support @Parent for @Embeddable reference to parent?

instrumentation: @Entity class User implements Serializable { @Id @GeneratedValue(strategy = GenerationType ... = profile; this.profile.setUser(this); } // ... }   @Embeddable class Profile implements Serializable

Problem with distinct select, order by and equivalent alias/attribute path

implements Serializable {     @Id     private String id;     ... ;   }   @Entity public class Street implements Serializable {     @Id

Possible cause for "Enhancement of type ... is old and cannot be used"

base class entity (except that it in turn inherits from a non-entity Serializable class that provides

Duplicate Entity class names causes Exception in Query

class Singleton implements Serializable { public static Singleton getInstance(EntityManager em

Immediately retrieve unique id

The beginning of my "Sample" class looks like: @Entity @SequenceGenerator(name = "sampleSeqGenerator", initialValue = 1, allocationSize = 100) public class Sample implements Serializable { private static final long serialVersionUID = 1L; private String sampleName; @GeneratedValue(strategy

ManyToMany Set is null

Why can the field "contracts" be "null"? ---------- @Entity @Inheritance(strategy = InheritanceType. TABLE_PER_CLASS ) public class Person implements Serializable ,Subject {     @Id @GeneratedValue     private long id;     @ManyToMany(fetch = FetchType. EAGER , cascade

Error with org.springframework.data.jpa.domain.AbstractPersistable

. Caused by: com.objectdb.o.UserException: Unsupported auto value type java.io. Serializable for field

[ODB1] Chapter 6 - Persistent Objects

that whatever type is used by a given JDO implementation, it implements the Serializable interface

Unlimited JPA Persistable Types

Ashton Hogan Actually you can persist any Serializable type by setting the configuration . There is no point in persisting most of the non serializable types such as Thread , because when retrieved from

"is not null" queries not working with index

"is not null"-queries are not working correctly for indexed fields. Following SSCCE creates 1000 entities. A null value is assigned to an indexed field for every second entity. When doing count-queries at the end, wrong results are fetched. import java.io. Serializable ; import javax.jdo.annotations