ObjectDB Database Search

1-50 of 122 results

JPA Persistable Types

types and Serializable types (user or system defined). Note : Only instances of entity classes ... of the color3 field are stored internally as strings (i.e. “RED”, “GREEN”, “BLUE”). Serializable Types Every serializable class (user defined or system defined) is also persistable, but relying

Defining a JPA Entity Class

this is similar to serializable classes, which are marked as having the ability to be serialized. The Point ... to the NotSerializableException that Java throws (unrelated to JPA), when trying to serialize non- serializable objects

ObjectDB Object Database Features

types (@Embeddable) Mapped super classes (@MappedSuperclass) Enum classes Serializable types Persistent ... . Arrays , including multidimensional arrays. Any other serializable type . Lifecycle Events JPA

Entity Management Settings

of serializable types that are non persistable otherwise (e.g. a user defined class, which is not an entity

Posting Sample Code

a persistence unit, An entity or IdClass class should implement the java.io. Serializable interface).

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

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

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 static

Step 2: Entity Class and Persistence Unit

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

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 static

Step 2: Define a JPA Entity Class

. 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

code: package guest; import java.io. Serializable ; import java.sql.Date; import javax.persistence.Entity ... implements Serializable { private static final long serialVersionUID = 1L; // Persistent Fields: @Id

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

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