ObjectDB Database Search

51-100 of 122 results

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

Speed of queries that return many objects

... still seems slow. Thanks EKK import java.io. Serializable ; import javax.persistence.Entity; @Entity public class BenchEnt implements Serializable {     private static final long serialVersionUID

Error during cascaded merge

"}),}) public class Unit implements Serializable , Comparable { ... @OneToMany(mappedBy = "unit", cascade ... Serializable { ... } As I said before it all worked before the update to _02. Regards Ralph mosi0815 Ralph

List always null

I have the following classes: @Entity public class Noticia implements Serializable {     private static final long serialVersionUID = 1L;     @Id     ... ; @Entity public class Categoria implements Serializable {         private

Multi part paths in a composite index must have the same length

(members={"tStamp.value", "instrumentId"}) public class OBN implements Serializable {     ... implements Serializable , Comparable {     public long value; According to the doc - what i

Items in list are doubled, when the entity class is not enhanced

implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue private Long ... itemList; ... getters and setters } @Entity public class Item implements Serializable { private

Object comparation never matches

Hi! I'm trying to compare 2 identical objects in SELECT with no success: @Embeddable public class PhoneNumber implements Serializable {     int countryCode;     long ... = :principal"     ) }) public abstract class Customer implements Serializable {   

How to query for list of lists ?

") public class Inspiration implements Serializable { (...) @ElementCollection(fetch = FetchType ... = "pulseDataWareHouse") @XmlRootElement public class PulseDataWareHouse implements Serializable

Relationships and tracking changes

"EBVerlag": @Entity(name="VERLAG") public class EBVerlag extends Pojo implements Serializable { private ... implements Serializable { private static final long serialVersionUID = 1L; @Id @Column(name = "ID

Attempt to store an instance of a non persistable type

java.io. Serializable ; import java.time.LocalDateTime; import java.util.Objects; import java.util.UUID ... .data.log.v2.exception.Exception; @Entity public class Log implements Serializable ,Comparable { private

Storing a tree of data (depth=3)

@RequiredArgsConstructor public class Performer implements Serializable { /** version of class. */ private static final ... implements Serializable { /** version of class. */ private static final long serialVersionUID = 1L

Field in Generic Class not persisted?

java.io. Serializable ; abstract class ABS implements Serializable {     public Type1

Version 2.2.7 build 7/8 issue

Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue private Long id ... Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue private Long id

Find the error...JPA ENTITY HIBERNATE

.png.html       Entities:   package com.example.demo; import java.io. Serializable ... Serializable { private static final long serialVersionUID = 1L; // @GeneratedValue @Id @Column(name = "id

Navigation through Path to evaluate collection

ProductData implements Serializable {     @Id @GeneratedValue     private ... List apiId; } @Embeddable public class ApiIdData_ implements Serializable {      

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

Why can't we persist an object with a field of type EnumMap in ObjectDB?

Hi, Is there a reason why we can't persist an object with a field of type EnumMap in ObjectDB? but it works fine for fields like = HashMap Thanks EKK EKK Emmanuel Keskes You can persist any Serializable type if you enable this ability in the configuration. But using this feature is not recommended

JSON serialization and __odbHidden members

before). Here's my class: public class User implements Serializable { private Long id; private

Error opening database with ObjectDB Explorer when using composite key

implements Serializable { private String id; private String channel; .....   ENTITY: @Entity

How to delete M2M relationship?

In user model class I have the following: public class User implements Serializable {     @Id     @GeneratedValue(strategy = GenerationType.AUTO)     private Long id;     @ManyToMany(mappedBy = "attendees", cascade

Problem with @OrderBy

When I use @OrderBy and supply multiple order fields I get and error when ObjectDB Explorer expands a instance of the entity. Example code: @Entity @Table(name="Defects", schema = "myDB") public class Defects implements Serializable {     ...     ...  

Query only works correctly when debug printing results

implements Serializable { /** * */ private static final long serialVersionUID = 5019171545896480392L; @Id

Method not found on...

I've got this class... @Entity @Table(name = "language") public class Language implements Serializable { ... private List aliases; ... public boolean hasAlias(List alai) { return ... ; } ... } When I try to make this JPQL query: SELECT g from Language g where g.hasAlias("espanol", "italian

significant performance decrease

): @Entity public class ObjectNode implements Serializable { private static final long serialVersionUID

Strange behaviour with ORDER BY and IN

implements Serializable {     @Id     private String id;   

Null returned by Persistence.createEntityManagerFactory

; @Entity public class Task implements Serializable { @Id @GeneratedValue int id; //int id = 0; private

TYPE Expression

A implements Serializable {     }     @Entity     public

Rename Application StringIdentity

I don't think JDO supports altering an entity's Application Identity.  Does ObjectDB? @PersistenceCapable public class MyClass implements Serializable , Cloneable{ @Id private StringIdentity id; ... }   PersistenceManager persistenceManager = ...; Transaction transaction

ODB with Netbeans

. Serializable interface." This is also a NetBeans restriction, not a JPA restriction. "There is no ID

JOD problems regarding detachCopy()

whether enhancement is required? My code: @Entity public class Boat implements Serializable { @Id private String name

Entity name

Hello  !! I am new in JPA / ObjectDB development and I have many questions:   2. Object creation I created a class named EBResult which looks like this: @Entity(name="RESULT") public class EBResult extends Pojo implements Serializable {..... In ObjectDB-explorer (which is part of ObjectDB

Spring 4 setup

value type java.io. Serializable for field org.springframework.data.jpa.domain.AbstractPersistable.id

removed objects stay with null field values in the reference

We have a class with a one to many relationship declared like this (1 or more objects of the same class are linked into the relationship, no circular referencing): @Entity public class ObjectNode implements Serializable { private static final long serialVersionUID = 1L; @Id public String uUid

Entity listener - event instead of object

;             final Serializable entityId

Failing to read entities under load in multithreaded tests

TestIdHolder implements Serializable {     private static final long serialVersionUID = 1L

JDOHelper.isDetached failure ?

implements Serializable { @PrimaryKey private long id; private String name; protected TestClass() { } public

"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

ObjectDB 2.2.5

of user defined serializable objects. Fixed a bug in using NOT NULL in criteria queries . Fixed a bug

Lazy retrieval by access not working correctly

private LocalizedValues names; ... } @Embeddable public class LocalizedValues implements Serializable