ObjectDB Database Search

101-136 of 136 results

Query problem

Hi, Given : @Entity(name = "Inspiration") public class Inspiration implements Serializable {     ....     @ManyToOne(fetch = FetchType.EAGER)     protected Atelier atelier;     .... } I have a query : SELECT i FROM Inspiration i WHERE i

Failing to read entities under load in multithreaded tests

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

Possible issue with String fields

up. My entity looks like this .. @Entity public class av_booking implements Serializable { @Id

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

multi thread application, id field sporadically null

Serializable { private static final long serialVersionUID = 1L; @Id public String nodePath; ... as soon as

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

JDOHelper.isDetached failure ?

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

Null returned by Persistence.createEntityManagerFactory

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

Spring 4 setup

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

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

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

Unable to store AtomicInteger

In the docs, all serializable types should be persistable. However, when I tried to persist a field of type AtomicInteger, I got the following message: Message: Failed to commit transaction: Attempt to store an instance of a non persistable type java.util.concurrent.atomic.AtomicInteger I am using

Lazy loading does not work - crud takes long

", "ValidAttributes"}) public class Project implements Serializable {     @Id    

JSON serialization and __odbHidden members

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

Strange behaviour with ORDER BY and IN

implements Serializable {     @Id     private String id;   

significant performance decrease

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

Database Inconsistency or corruption

abstract class Value implements Serializable , metamodel.IValue {   @javax.persistence.Id  

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

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

2.7.3_03 Erroneous "Attempt to modify a primary key of a managed object"

AuEntity implements Serializable { @Id @GeneratedValue long id } it's the ONLY place in the entire

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

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

How to pass a list in query for a list field of entity.

I have a entity as bellow :- @Entity @Table(name = "agent") public class Agent implements Serializable { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long Id; private List SocialMedias; public Agent() { } public Long getId() { return Id; } public List getSocialMedias() { return

How to apply constraints in collection attributes of entity.

How to apply constraints like unique, not null ...etc in collection attribute of a entity. Example : @Entity @Table(name = "agent") public class Agent implements Serializable { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long Id; private List PhoneNumbers; public Agent() { } public

JOD problems regarding detachCopy()

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

Error opening database with ObjectDB Explorer when using composite key

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

Query only works correctly when debug printing results

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

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

Lazy retrieval by access not working correctly

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

java 8 LocalDateTime is not working in query

. What could be the other reason it's still working for me? my entity class is Serializable though. I'm using

com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: null

@Entity class WebReference implements Serializable {     private @Id    

Support Attribute Conversion for Persistence

The @Converter annotation and the Attribute Converter interface have two big benefits: 1) They make it possible to persist any as-yet-unsupported java types that do not implement java.io. Serializable . (If they do, it is possible to persist them automatically by turning on the   option in

Minor typo on web page...

On Page: http://www.objectdb.com/java/jpa/entity/types Under: Serializable Types "The internal Java serialization format will be inaccessible to future versions of ObjectDB on other platform." ...should be platforms (plural).   rwehrli Rob Wehrli Thanks. Following your report the text was fixed. support Support

objectdb-2.6.9_06: Extended Persistence Context fails: 'Attempt to begin a new transaction when a transaction is active'

(The classes all implement Serializable where necessary, via a common inherited logging service class

"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