About package

manual

JPA Primary Key

Explains how to define and use primary keys in JPA, including composite and embedded primary keys.... double . Equivalent wrapper classes from package java.lang: Byte , Short , Character , Integer , ...

 
manual

Index Definition

Describes how to define indexes in JPA entity classes and explains how indexes are used in JPQL queries.... float , double. Equivalent wrapper classes from package java.lang: Byte , Short , Character , Integer , Long , ...

 
forum_thread

java 8 LocalDateTime is not working in query

My entity class has a field of type java.time.LocalDateTime. I'm able to persist entities and I'm able to query without datetime field in where clause, but with datetime in where clause doesn't return anything and not exception.   ... is a self-contained sample how it should work: package test ;   import javax. persistence . *; import ...

 
forum_thread

Broken @ManyToOne reference

Hi, I have objects of type A belonging to objects of type B, defined as follows: @MappedSuperclass public abstract class A {   @Id   @ManyToOne(fetch = FetchType.EAGER, cascade=CascadeType.ALL, optional=false)   private B b;   @Id   @Column(length = 36)   private String stringId; } @MappedSuperclass public abstract class B {   @Id   private String name; } ... the @Id annotation at ChildSuper : package testobjectdb ;   import javax. persistence . ...

 
forum_thread

"where in" query

Is it possible to run a query selecting values that exist in a provided list? e.g. something like: SELECT u FROM User m WHERE u.username IN ('test_user','anotheruser') I've tried various combinations of this including passing the list as a named parameter but without any joy. The only similar examples I can find in the docs involve a join query - but my list isn't in the database - and the MEMBER OF operator doesn't seem to do what I want (although I may be using it incorrectly! ... MEMBER OF with parameter for this purpose: package com. objectdb . forum ;   import java. util . *; ...

 
release

2.5.1

... names (issue #186 ). Fixed accessing a package level JDO sequence using getSequence ( issue #186 ). ...

 
forum_thread

IN expression in a Criteria Query

Hello, I am trying to migrate my Spring project from Hibernate to ObjectDB. On ObjectDB page, it is written that ObjectDB is 100% compatible with JPA. However, I have problem with this JPQL query: SELECT e FROM Employee e WHERE e.present = false AND NOT EXISTS (SELECT c FROM Computer c WHERE c.employeeEntity = e) ORDER BY e.name with Hibernate, there was no problem with this query, but ObjectDB throws exception: ... for the original report, still works with 2.5.3: package test ;   import java. util . *;   import ... test with a JPQL query string, that still works: package test ;   import java. util . *;   import ...

 
issue

Doctor bug?

Please see the attached .odb file. It was freshly created by my web application, and just very few entries have been posted to the database yet. But still the doctor reports a whole bunch of errors. My application seems to function properly though. I guess this is a bug in the doctor? Using version 2.4.1. I get  ... as you suggested (in another recent issue): package net. pocketservices . athene . objects . persistent ; ...

 
forum_thread

Explorer in 2.3

First, the new Explorer in ObjectDB is fantastic! This is exactly what we've needed - an easy way to do ad-hoc JPQL queries and navigate through the results and even make small changes to primitive data and Strings. After playing with it for a while, here is a list of additional features I'd love to have: 1. Export of selected data: a. Simple - Select a range of cells or a column header and copy text to the clipboard or save to a file (csv, html, etc..). (There appear to be copy menu options, but I cannot get them to work.) ... 2) ability to rename the Entity Classes (especially the package names). edit ...

 
forum_thread

creating EntityManager on odb file created on Mac 64bit on Windows 32bit

Hello, I have an odb file created on my Mac OSX 64bit. When I further, in other program, create an EntityManagerFactory and later EntityManager on this file, every thing is working fine. But, when I transfer this program and odb file to Windows XP 32bit it crashes while creating EntityManager. Do you have any idea why does it crash? Thanks, Marcin  ... expressedpathfinder is my main package in java project where I create and use SMMD.odb.   ...