Internal Website Search

51-100 of 136 results

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

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

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

"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