Internal Website Search

101-150 of 200 results

persistence.xml classes not respected by ObjectDB

Hi! I have the following persistence.xml. The problem is that ObjectDB loads all the classes in P1 (+ their embeddable classes ). P2 is created properly, but P1 gets all entity classes (from P2 also). How can this be avoided, so that both P1 and P2 get just the classes that were specified to each

Using the wrong class to access a database

; // imports public class Main { public static void main(String[] args) { run(); } static void run() { System.out.println("Test 1"); System.out.println("Point. class : " + Point. class ); EntityManagerFactory emf ... entity } } em.getTransaction().commit(); } } the Point class : package com.objectdb.tutorial; import

Duplicate Entity class names causes Exception in Query

I have two Entities which have the same class name but reside in different packages, only one of them is mentioned in the persistence.xml. I a NamedQuery I use the unqualified class name ... ) at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:657) ... 64 more Here is the class doing

Problem to use find method on an abstract Class: AbstractMethodError is thrown

this method mentioning LogicalObject I get AbstractMethodError Please see services.Tester class ... ] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver ... (Unknown Source) [ classes :] at services.PaltzefomatServlet.doPost(PaltzefomatServlet.java:46) [ classes

query on calendar class

Hello!   I'm looking for help to build query on calendar class . I need to get objects where Calendar.DAY_OF_WEEK is FRIDAY or any other. My class : @Entity public class Cdr {     ... ("SELECT c FROM Cdr c where c.start.DAY_OF_WEEK = ?1",Cdr. class ); query.setParameter(1,Calendar.FRIDAY

Schema update: package, class and field

Support Thanks. It works. btc_es BTC EmbeddedSystems It does work for entities classes but not for embeddable classes . Do you have a solution for embeddable classes ? btc_es BTC EmbeddedSystems There should not be a difference between entity and embeddable classes regarding schema changes. Maybe

Field not persisted in abstract class with two level of nesting

Hi, I have a field (embedded TZ1) which is not persisted in class MHD1 (TZ1  extends AS ... public class MHD1 implements Serializable{     private TZ1 timezone;     ... ; } } TZ1 package BUG2; import javax.persistence.Embeddable; @Embeddable public class TZ1 

Dont want to use Proxy Class

of persistable proxy classes may affect the app behaviour.  I have been trying to understand root cause ... at defineClass call in d method ACL class which is triggerd by i method of STL class . I think the byte array for the extended ArrayList class could not be properly created.  I have not tried newer versions

com.objectdb.o.TEX: Type ... is not found, for a class that's already been enhanced successfully.

to implement Enhancement (because the log always says that the classes are not enhanced). The main class starts like this, and does not reference any persistent classes directly. static void main(String[] args) { Enhancer.enhance(   "common.app.Model,common.model.*,mr.model.*", Model. class

Add class to objectdb ?

Hello , i've made blank db project and opened with explorer.jar How can i add class file then push ... them. But why odb file is fully blank ? How can i add classes ?   kadirbasol Kadir BASOL I've clicked ... Currently to add new classes in the explorer you will have to use a workaround: Run the Explorer

How to create dynamic Entity class.

javassist API to create dynamic class . Here i have written some code which is create dynamic class as well as object.  Class and object successfully created. And insert data also now problem ... because of a  ClassLoader  conflict, i.e. the same class is defined by both your class loader

Class loading problem with private packages in OSGi environment

use the classloader of the bundle of the entity. And not his own. The change of the context class ... another bundle and can only access classes and interfaces in other bundles if they are exported. ObjectDB needs the ability to access these types directly and not just by loading the implementing classes

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

Dear all, I have a problem with adding items (entities) into other entity list. When the classes are not enhanced, added items are doubled. Here is an example: @Entity public class Customer ... itemList; ... getters and setters } @Entity public class Item implements Serializable { private

Field in Generic Class not persisted?

Hi, I am trying to persist a class which is extended from an generic class - but fields declared inside the generic class are not persisted - is that expected? I assume it can be done b/c this field ... ; @Entity public class OBJ6 extends ABS {      @Id @GeneratedValue long id;  

Exception after update of indices of Entity class

Hello, I changed the index definition of an entity class from @Index()... to @Indices() and now I ... . Could you describe the index change itself? The stack trace may indicate an issue with an embedded class ... of an embedded class ? support Support Hello, here are my classes : @Indices ({     @Index

References to objects of missing obsolete entity classes

the database but their classes have been deleted or missing? This is abnormal state for a database ... (enhanced) entity class in your project for that obsolete entity class . support Support ... itself, is it correct that the objects are in the database but their classes have been deleted or missing

Enhancing a class causes it to not save changes.

So when we enhance the Account class , no changes are saved to it. When it is reflection mode, everything works perfectly. In reflection mode, the objectdb log on debug mode refers to classes ... out how ObjectDB is holding on to the old classes , as they have not existed for  months. 

No Entity Class API

classes (mainly entity classes in JPA or persistence capable classes in JDO). Usually, this is very convenient. Sometimes, however, it might be useful to access data without user defined persistable classes ... and should not be bound to specific entity classes and persistent fields. Therefore, an API for accessing

JPA Annotations for Callback Methods

The following annotations can mark methods as JPA callback methods: The Lifecycle Events section of the ObjectDB Manual explains how to use all these annotations on callback methods and with listener classes .

Database Transaction Replayer

is not in the current directory a path to it has to be specified. The tool's main class is com

ObjectDB License Agreement [ver. 2.0.4]

of classes and objects in a database file s . The full edition of the Software (without the restrictions

JPA Annotations for Fields

The way a field of a persistable class is managed by JPA can be set by the following annotations: Additional annotations (and enum) are designated for enum fields: Other additional annotations (and enum) are designated for date and calendar fields: Chapter 2 of the ObjectDB manual explains how to use all the above annotations.

Collections in JPQL and Criteria Queries

"); Expression param = cb. parameter (String. class ); // collection IS [NOT] EMPTY Predicate e1 = cb

Is ObjectDB scalable? What are its limitations?

classes per database file. Up to 2,147,483,648 indexes per database file

Numbers in JPQL and Criteria Queries

. get ("population"); Expression param = cb. parameter (Integer. class ); // Addition (+) Expression sum1 = cb. sum

ObjectDB License

Free License ObjectDB can be downloaded and used at no cost (including commercially)  with the restriction of a maximum of  10 entity classes and one million entity objects per database file. This could be useful for small projects, academic assignments, evaluation and learning

JPA Annotations for Value Generation

can also reference a value generator, which is defined at the class level by using one of the following annotations

ObjectDB - JPA Object Database for Java

- start writing more effective database code using Java classes and objects! Try an ObjectDB / JPA

Database Doctor

is not in the current directory a path to it has to be specified. The tool main class is com.objectdb

ObjectDB 2.9 Developer's Guide

;      Shows how to define JPA entity classes that can be persisted in

JPA Annotations for Relationships

Relationships are persistent fields in persistable classes that reference other entity objects. The four relationship modes are represented by the following annotations: Unlike ORM JPA implementations, ObjectDB does not enforce specifying any of the annotations above. Specifying a relationship

UPDATE SET Queries in JPA/JPQL

of a specified entity class in the database (including instances of subclasses). For example, the following

Online Backup

;TypedQuery backupQuery =     em.createQuery("objectdb backup", Thread. class );  

Criteria Query From Elements

variables (bound by an entity class ) are represented by the Root subinterface: Join variables (bound by

Step 5: Add a JSP Page

In this step we will add the JSP that generates the guestbook HTML output: Open the [New JSP File] dialog box by right clicking the WEB-INF node under the Web Pages node (in the [Projects] window) and selecting New JSP ... Enter guest as the jsp file name - use exactly that case sensitive class

Step 1: Create a Java EE 6 Web Project

: You should now have an Eclipse Java EE 6 project with ObjectDB/JPA support. The next step is creating a JPA Entity class .

Step 5: Add a JSP Page

In this step we will add the JSP that generates the guestbook page output: Open the [New JSP File] dialog box by right clicking the Web Pages node (in the [Projects] window) and selecting New JSP ... Enter guest as the jsp file name - use exactly that case sensitive class name. Click Finish

Getting Started with JPA - NetBeans Project

the project in NetBeans: Select Run Run Main Project... (or F6 ). Click Select Main Class .

Getting Started with JPA - IntelliJ Project

. Run the project in IntelliJ IDEA: Select Run Run Main Project... (or F6 ). Click Select Main Class .

Step 5: Add a JSP Page

In this step we will add the JSP that generates the guestbook page output: Open the [New JSP File] dialog box by right clicking the Web Pages node (in the [Projects] window) and selecting New JSP ... Enter guest as the jsp file name - use exactly that case sensitive class name. Click Finish

Step 5: Add a JSP Page

- use  exactly that case sensitive class name. Click  Finish to create the new JSP file. Now

Step 1: Create a Java EE Web Project

Application project with ObjectDB/JPA support. The next step is creating a JPA Entity class .

Step 5: Add a JSP Page

  exactly that case sensitive class name. Click  Finish to create the new JSP file. Now

Step 1: Create a Web Project

: Now you should have an Eclipse Dynamic Web project with ObjectDB/JPA support. The next step is creating a JPA Entity class .

Step 1: Create a Java Project

JARs... The next step is creating a JPA Entity class .

Step 5: Add a JSP Page

that case sensitive class name. Click Finish to create the new JSP file. Now replace the content

Step 1: Create a Web Project

with ObjectDB/JPA support. The next step is creating a JPA Entity class .

JDO Internal Callbacks

The following interfaces can be implemented by persistence capable classes in order to response to JDO lifecycle events:

JDO Annotations for Fields

The way a field of a persistable class is managed by JDO can be set by the following annotations and enum types:

JDO Exceptions

JDO exceptions are represented by the following exception classes :