About reference

forum_thread

Searching lists within objects

Hi everyone,  I've a problem with searching on lists. I'm uncertain as to what the best form is, so I've created a maven project with all the classes and a unit test showing my issue. Pretty much I want to search using cb.isMember passing an object. This however does NOT work. I'm uncertain how the database is doing its matching, but it looks to me like it matches using objectids, which means you can only match isMember if you have a database object. This does not help as I'm never going to have the real object at search time. #1 2011-07-07 00:59 Hi everyone,  I've a problem with searching on lists. I'm uncertain as to what the best form ...

 
issue

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

objectdb-2.6.9_01 NetBeans8.1+Glassfish4.1.1 Mac OS X Possibly related: How to Use a SF with extended Persistence Context? Test mini web app at: https://www.webel.com.au/downloads/objectdb/GreensoftObjectdbTestWebMini3683.2016-09-29.tgz ... one can instead simply use a dedicated @EJB builder reference for each desired project one wishes to build, but it's not an ...

 
forum_thread

zip file or JAR manifest missing

I found the message: Error opening zip file or JAR manifest missing: /E:/projects/ObjectDB/bin/objectdb.jar Some of projects can read the DB, but others can not read or write the DB. ... Java Persistence query language statement. See JavaDoc Reference Page... method. Access the type metamodel ...

 
forum_thread

Queries are slow on a large database

Hi, I have a 12GB database with 787603 entries. It is much larger than usual and there are performances issues. I am doing small queries and they take much longer than I expect, i.e.: Get the total number of entries Get 25 consecutive entries (i.e. 0-25) Get one specific entry On average each query needs 4 to 5 minutes to return a result. I have been adviced to use indexes but they are already used through the JDO Metadata file. For instance I use this class: ... single-string representation of the query. See JavaDoc Reference Page... , with very fast execution time. Similarly to ...

 
forum_thread

@ElementCollection of type enum

Hi! I have in an entity called User with the following field: @ElementCollection(fetch = FetchType.EAGER) private Set<UserPermission> permissions; package x.x.x.x public enum UserPermission { BASIC, COACH, ADMIN } Use case: there are users which contain the first 2 permissions (BASIC and COACH, so the first 2 entries). ... should be persisted as a enumerated type. See JavaDoc Reference Page... . ObjectDB Support ...

 
forum_thread

Restrict by class in query

I have the following bit of code: ... Java Persistence query language statement. See JavaDoc Reference Page...  an  IllegalArgumentException has to be ...

 
tutorial

Step 3: Add a Context Listener Class

Explains how to add a servlet context listener (to manage an application scope EntityManagerFactory) in a NetBeans Web Application.... manager factory for the persistence unit. See JavaDoc Reference Page... instance with a global application scope. We have ...

 
tutorial

Step 3: Add a Context Listener Class

Explains how to add a servlet context listener (to manage an application scope EntityManagerFactory) in an Eclipse Web Application.... manager factory for the persistence unit. See JavaDoc Reference Page... instance with a global application scope. We have ...

 
forum_thread

The attribute column name (EXCEPTION) is a reserved SQL-99 keyword.

How do I fix this error/warning that Netbeans gives me? <img src="http://www.objectdb.com/files/attachments/Ashton/reserved.png" alt="Reserved Keyword" /> ... column for a persistent property or field. See JavaDoc Reference Page... annotation that will map the name of the Java field ...

 
forum_thread

@Column( name = "columnName") doesn't work

I have created following entity class with custom fields @Entity public class AfwDataKey {    @Id    @GeneratedValue    @Column(name = "KEY_ID")    private long id;    private Long timestamp;    @ManyToOne    @Column(name = "KEY_DESCRIPTOR")    private AfwKeyDescriptor keyDescriptor; ... column for a persistent property or field. See JavaDoc Reference Page... ). When you use ObjectDB, you only have ...