About settings

tutorial

Step 5: Add a JSP Page

Explains how to add a JSP page that uses JPA to a NetBeans Java EE 6 (J2EE) web application. 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 ...

 
forum_thread

Error using query with MAX() function

I have a class that is persisting a Entity that holds remarks and a time. Then when I query for the latest remark I get a internal error when the remark is larger than 1966 chars. Here is a test class and entity that reproduces the problem on my system. #1 2011-04-24 04:51 I have a class that is persisting a Entity that holds remarks and a time. Then when I query for the lates ...

 
forum_thread

Group by date / time

Hi, I'm trying to create reporting query that will return entities grouped by year / mont / day. Each entity has it's own field that holds java.lang.Date. There is no function like YEAR(), MONTH() or DAY() in ODB. So, how to build queries similar to something like this: SELECT COUNT(id) FROM stats WHERE YEAR(record_date) = 2009 GROUP BY YEAR(record_date), MONTH(record_date) or maybe something like this: #1 2011-07-10 14:01 Hi, I'm trying to create reporting query that will return entities grouped by year / mont / day. Each ...

 
forum_thread

Groovy JPA example

I've been using Groovy with ObjectDb, just thought I'd post a short snippet to show how easy this is to do. The following script (which is one import and one statement) will open a database, run a query and print some results. --------------------------------------------------------------- import javax.persistence.Persistence #1 2011-10-10 05:21 I've been using Groovy with ObjectDb, just thought I'd post a short snippet to show how easy this is to d ...

 
forum_thread

Object DB vs EclipseLink/TopLink: Unloaded relationships in detached entities

This topic is for those considering migrating from EclipseLink JPA or TopLink to ObjectDB JPA. #1 2011-06-03 20:30 This topic is for those considering migrating from EclipseLink JPA or TopLink to ObjectDB JPA. This conce ...

 
manual

Online Backup

Online Backup enables backing up an ObjectDB database while it is in active use by applications. The ability to create a backup while the system is running is essential in applications and services that have to be available 24/7/365. An ObjectDB database can be backed up by simply copying or archiving the database file while the database is offline (i.e. when it is not open in an ObjectDB server and not in use by any application), since an ObjectDB database is stored as an o ...

 
tutorial

Step 5: Add a JSP Page

Explains how to add a JSP page that uses JPA to an Eclipse Web Application. 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 WebContent node (in the [Package Explorer] window), selecting New > Other... > Web > JSP File and ...

 
forum_thread

Optimization of Map Queries

hi! I am having loads and loads of occurrences of something like ((com.test.MyEntity) $1.map.get('com.test.MyEntity')).someProperty ... ((com.test.MyEntity) $1.map.get('com.test.MyEntity')).someOtherProperty .. ((com.test.MyEntity) $1.map.get('com.test.MyEntity')).someMoreProperties I need to use full qualified names for casting as well as for the map keys because same entity simple names may occur multiple times. Now I've got two questions: #1 2012-01-18 07:13 hi! I am having loads and loads of occurrences of something like ( ( com . test . ...

 
forum_thread

migration path from JPA / Hibernate

Hi. Is there a conversion tool or documentation that is of help when migrating an existing JPA solution to ObjectDB? Any recommendations or known pitfalls when it comes to ...   #1 2011-03-30 13:10 Hi. Is there a conversion tool or documentation that is of help when migrating an existing JP ...

 
api-jpa

javax.persistence.ManyToOne

Defines a single-valued association to another entity class that has many-to-one multiplicity.(Annotation of JPA)