ObjectDB Database Search

51-100 of 164 results

Persist error @ManyToMany how to define correct entities relationships

too). @Entity public class Product implements Serializable { @Id @GeneratedValue private long id ... Category implements Serializable { @Id private long id; public Category(int id) { this.id = id ... .io. Serializable ; import java.util.ArrayList; import java.util.List; import javax.persistence

jakarta.persistence.OptimisticLockException

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

jakarta.persistence.PersistenceException

Jakarta Persistence (JPA) Class jakarta.persistence.PersistenceException java.lang.Object ∟ java.lang.Throwable ∟ java.lang.Exception ∟ java.lang.RuntimeException ∟ jakarta.persistence.PersistenceException Implemented Interfaces: Serializable Thrown by the persistence provider when a problem

jakarta.persistence.PersistenceContextType

Jakarta Persistence (JPA) Enum jakarta.persistence.PersistenceContextType java.lang.Object ∟ java.lang.Enum ∟ jakarta.persistence.PersistenceContextType Implemented Interfaces: Constable , Comparable , Serializable Specifies whether a transaction-scoped or extended persistence context

jakarta.persistence.PessimisticLockScope

Jakarta Persistence (JPA) Enum jakarta.persistence.PessimisticLockScope java.lang.Object ∟ java.lang.Enum ∟ jakarta.persistence.PessimisticLockScope Implemented Interfaces: FindOption , RefreshOption , LockOption , Constable , Comparable , Serializable Defines the values of the jakarta.persistence

openejb jpa jaas module

.*; import java.io. Serializable ; import java.security.Principal; /** * Created with IntelliJ IDEA. * User ... ) public class Principals implements Serializable ,Principal { private String principalName ... .Index; import javax.persistence.*; import java.io. Serializable ; import java.util.List; /** * Created

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

Need help to make this test work and define proper annotations for entities Lists

. Serializable ; import java.util.List; import javax.persistence.Entity; import javax.persistence ... ; public class TestODB implements Serializable {          public static ... ;     @Entity public static class OrderDat implements Serializable {   

Field not persisted in abstract class with two level of nesting

ATT. Here is an example code MHD1 package BUG2; import java.io. Serializable ; import javax ... public class MHD1 implements Serializable {     private TZ1 timezone;     ... ();     } } ATT package BUG2; import java.io. Serializable ; import javax.persistence

Trouble bug on explorer

. Serializable ; import java.util.Date; import java.util.List; /** * Created with IntelliJ IDEA. * User: apple ... ") }) @SequenceGenerator(name="seq", initialValue=10000) @Entity public class User implements Serializable { @Id ... javax.persistence.Id; import java.io. Serializable ; /** * Created with IntelliJ IDEA. * User: apple

Is it ok to put list or map of embeddable objects in entity ?

database?   And one more question - I have some entities that have my own, serializable ... of these serializable classes also as embeddable. support Support Ok, thanks for your answer. I have another question though. I have entity EntityA like that @Entity public class EntityA implements Serializable

Error 363 - Failed to read value of inverse relationship

implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue private Long ... public class Message implements Serializable { private static final long serialVersionUID = 1L; @Id ... class will be usefull after Player class will work. import java.io. Serializable ; import java.util

Unexpected exception (error 990)

@Embeddable public class Persona implements Serializable { protected String DNI; protected String nombre ... .next(); } } class Trabajador extends Persona implements Serializable { private Integer numt; Scanner entrada = new ... ?"); this.numt = entrada.nextInt(); } } @Entity public class Vehiculo implements Serializable { @Id Scanner

Should I be able to persist a JFrame (or gui components in general)?

that just has a JFrame attempting to persist. //i tried this with and without Serializable ... ......................................................................................... import java.io. Serializable ; import javax.persistence ... Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue private long id

Should derived fields of an EmbeddedId be manually maintained by app code?

.persistence.NoResultException ex) { return -1; } } } import java.io. Serializable ; import javax ... implements Serializable { private static final long serialVersionUID = 0L; private String cachedKey; private ... ); //em.flush(); return newObj; } } import java.io. Serializable ; import javax.persistence.Basic; import

Extending model by "common entity"

public class Entity1 implements Serializable {     private String val1;   ... here) } and the second one: @Entity public class Entity2 implements Serializable {      ... BaseEntity which all common attributes: @Entity public class BaseEntity implements Serializable

Mysterious "Attempt to persist a reference to a non managed instance" error

the past. package failing; import java.io. Serializable ; import javax.persistence.Entity; import javax.persistence.Id; @Entity public class Ostrich implements Serializable {     @Id long id;     public Ostrich() { } } package failing; import java.io. Serializable ; import java

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

TemporalType injection with Calendar using JPA

) public class TimePeriod implements Serializable { private Calendar beginTime; private Calendar endTime ... Serializable { private TimePeriod id; private List points; public Chart() { this.points = new ... TimePeriod implements Serializable { private long beginTime; private long endTime; private String

Beginners questions

Serializable {..... In ObjectDB-explorer (which is part of ObjectDB library) I expected to see an object named ... implements Serializable { private static final long serialVersionUID = 1L; @Id @Column(name = "ID ... ") public class EBUser extends Pojo implements Serializable { private static final long serialVersionUID = 1L

Query on Embedded Primary Key?

it - (full reproducible code here - just run it) Thanks  EKK   package DBbug; import java.io. Serializable ... .Persistence; import javax.persistence.TypedQuery; @Entity public class OBJ2 implements Serializable ... Primkey2 implements Serializable {     public long field1;     public long

Query to find object from element of a contained collection

public class OrderData implements Serializable {     ...      ... implements Serializable {     ...     private String itemId = null;     ... }       lo Hoel Although serializable objects that are not

Problem with merging / persisitng objects with @Embeddable field

Serializable , Convertable { (...) @ElementCollection(fetch = FetchType.EAGER) List productSets; @Embeddable public class ProductSet implements Serializable { @ManyToMany(fetch = FetchType.EAGER, cascade ... Serializable , Convertable { @ManyToMany(targetEntity = ProductSet.class, mappedBy = "productDemands

Clarification on free license restrictions

pricecap72 Craig A Price Embeddable classes are count as entity classes but other serializable classes ... your own serializable classes as a replacement to avoid hitting the limit. Update: In newer ObjectDB versions ... ? When attempting to persist my serializable user generated class of Patient, which contains

Problem with entities detection

.io. Serializable ; import java.util.Date; import java.util.List; import javax.persistence.Basic ... ")}) public class Alumno implements Serializable { private static final long serialVersionUID = 1L ... asignaturasAlumnoList; And this is the Embedded class: @Embeddable public class Direccion 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

Database corrupted after schema change

Serializable , DCG, C { ...} public interface DCG { ... } with this code the app was reading TC ... nothing else:  public interface BDOInterface extends Serializable , DCG { ...} public interface DCG extends C

List of Enum Values in an entity

.io. Serializable ; import java.sql.Date; import java.util.ArrayList; import javax.persistence.Entity ... implements Serializable { private static final long  serialVersionUID = 1L; @Id @GeneratedValue

EntityManager getMetamodel() causes crash

(); } } package test; import java.io. Serializable ; import javax.persistence.Entity; import javax.persistence ... implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue private long

Error occured during initialization of boot layer

objectDB; import java.io. Serializable ; import javax.persistence.Entity; import javax.persistence ... Serializable { /** * */ private static final long serialVersionUID = 5019171545896480392L; @Id @GeneratedValue

Composite Index error 328

Hi , when i try to use this entity as shown below: package persistence.jpa.models; import javax.jdo.annotations.Indices; import javax.persistence.*; import java.io. Serializable ; import java.sql.Date ... class UsrlistEntity implements Serializable { private static final long serialVersionUID

OrphanRemoval not working?

Dear all, I have entities Invoice and InvoiceItem, their relation is defined: public class Invoice implements Serializable { ... @OneToMany(mappedBy="invoice", fetch=FetchType.EAGER,    ... .ALL) private List invoiceItemList; ... } public class InvoiceItem implements Serializable

New to Product & Having An Issue

Serializable { public static final long serialVersionUID = 1L; private DomainId domainId; private ... Serializable { public static final long serialVersionUID = 1L; private String accountId; private String

Unexpected behaviour upon update. Bug?

This sample does not work as I expect.  Why?  Is it a bug? Below is the complete program. Expect: 3 Get: 4 import java.io. Serializable ; import java.util.List; import javax.persistence.*; @Entity public class Update implements Serializable { @Id int i; int v; public static void main

can't get HashMap out of the database

class Guest implements Serializable { private static final long serialVersionUID = 1L; // Persistent ... object is: @Embeddable public class Guest implements Serializable { private String name; private Date

ObjectDB JDO - foreign key constraints

Serializable { @PrimaryKey private String name; private int age; ...} @Entity public class Company implements Serializable { @PrimaryKey private String name; private Person employee; ...} When I save

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

.persistence.NoResultException ex) { return -1; } } } mport java.io. Serializable ; import javax ... CompoundKeyMapItem { public static class CompoundKeyMapItemId implements Serializable { private static final

Error 613 - i cant put a list into a Squad object

);     } } Now the Athlete Class package test; import java.io. Serializable ... .persistence.OneToMany; @Entity public class Athlet extends Person implements Serializable {   

@Unique member combination not working

Why does the below code not enforce unique restrictions?   Person @Entity @Unique(members = {"name", "surname"}) public class Person implements Serializable {     @Id    ... (members = {"name", "surname"})     public static class Person implements Serializable

Saving custom list which implements java.util.List fails

as shown below. @Entity public class Point implements Serializable {     ...   ... implements Serializable { ... private List friends = new MyList (); ... } Maybe the core question

turn off auto-serialization

Hi    As far as I understand if you have a classe that implements Serializable and is referenced by an Entity it will be automatically stored using standard serialization mechanizm.  Is there any option to turn off that feature so that if an un-enhanced ( Serializable ) class

Fields in objects not populated in query result.

Serializable { /** * */ private static final long serialVersionUID = 1L; @OneToMany(cascade ... , Serializable { /** * */ private static final long serialVersionUID = 1L; @GeneratedValue @Id protected long

how explorer queries work

also without your classes. The stack trace at #3 indicates that you are using serializable types ... the mismatching. Try to avoid using user defined serializable non entity / embeddable classes

Error reading UTF string (Serialized Objects in Explorer)

. It seems that there is a problem in reading the pricing field, whose type is serializable ( Money ). Using serializable types is not recommended (embeddable classes should be used instead) and is not fully supported by the Explorer since the Explorer doesn't have the serializable class

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

[ObjectDB 2.2.5_02] Unexpected exception (Error 990) com.objectdb.o.InternalException: java.lang.NullPointerException: null

@Access(AccessType.PROPERTY) public class Chart implements Serializable { private TimePeriod id; private ... TimePeriod implements Serializable { private long beginTime; private long endTime; private String periodType

Query on primary key is slow when using 'IN'

.IdClass; import java.io.Serial; import java.io. Serializable ; import java.util.Objects; @Entity @IdClass ... Serializable { @Serial private static final long serialVersionUID = -4357827914123980944L; @Id private