Internal Website Search

51-100 of 200 results

Query results are not up to date for entities, not primitives

When using the CriteriaBuilder to query, the loaded list are not refreshed according to the latest ... on update side does not any diference. The problem is only solved when changing the query mode, from ... that updates by queries bypass the cache and may result in not being seen by queries : "Updating

Not Enhanced: ...: com.objectdb.o.TEX: Type ..._$$_javassist_1 is not found

through @Inject. Both are not entities or anything related to ObjectDB. AuthB is used in a JSF page for login ... enhancement. As you noted, this class is not related to ObjectDB and does not need enhancement

NOT NULL not working

I added a OneToOne Realtionship to one of my entity classes. To  give this field a value in my existing datasets i wrote an upgrade method. The cool thing is that SELECT u FROM Unit u WHERE u.lastPosition IS NOT NULL returns no datasets. Is this a bug or am i missing something? mosi0815 Ralph

Pre-detach loading: retrieval by navigation not working in if statement

: objectdb.temp.no-detach NOT USED This problems only seems to occur in my large web application ... web application parallel to the large web application, but the problem does not happen in ... , which is a "one size fits all" approach, does not meet my needs for all situations. I

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

( "ManagedType Guest not found"  );   // NamedQuery does not work   // TypedQuery query ... " ) } ) ... // NamedQuery does not work // TypedQuery query = this.em.createNamedQuery( "Guest.getAll", Guest ... /examples/guestbook-jee6.zip does not even deploy on JBOSS AS7 stack trace is: 09:40:30,202 INFO  [org

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

Noticing very poor performance from ObjectDB, not exactly sure what the problem is. Tried 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

Database Replication and Clustering

(but not in embedded mode) can function as a master database in a cluster.  Recording ... using one or more elements) and also databases that are not part of any cluster. The replicated

Index Definition

fields ( not on primary key / version fields). Composite Index A composite index is an index ... because the index uses the lexicographic order of the words and is not ordered by the length of the words

DELETE Queries in JPA/JPQL

, which are used to retrieve data from the database, DELETE queries do not retrieve data from ...  may break its synchronization with the database. For example, the EntityManager may not be aware

Eclipse Distribution License - v 1.0

HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED ... , SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE

Can I use ObjectDB to access a relational database?

standalone Object Database Management System (ODBMS) and not an ORM tool, so it is not intended and cannot be used to access other database management systems.

Entity Management Settings

, even if it is not specified explicitly at the command line. This is currently an experimental feature ... of serializable types that are non persistable otherwise (e.g. a user defined class, which is not an entity

Online Backup

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 ordinary file in the file system.  ObjectDB

Paths and Types in JPQL and Criteria API

the actual type of the iterated e . Only objects whose type is not Country are passed to the SELECT ... . For example, the following criteria expression checks if the type of a specified entity e is not  

JPA Criteria API Queries

expression. A  CriteriaQuery instance is equivalent to a JPQL string and not to a TypedQuery instance ... , isNull , ...) Logical expressions ( and , or , not , isTrue ). The links above are direct links

ORDER BY clause (JPQL / Criteria API)

The ORDER BY clause specifies a required order for the query results. Any JPQL query that does not include an ORDER BY clause produces results in an undefined and non-deterministic order. ORDER BY ... , is invalid because the ORDER BY expression is not part of the results: SELECT c.name FROM Country

Locking in JPA

if the version numbers do not match, indicating that the object has been modified by another user ... (which is required by some ORM JPA providers) is defined in the entity class or not . Pessimistic Locking The main

Chapter 4 - JPA Queries (JPQL / Criteria)

, but does not provide specific details on the JPQL query language itself: The Java Persistence Query ... ), which is more Java oriented and is based on the syntax of Java. JDOQL is not covered in this manual

Collection update does not increase entity version and is not persisted

{ String filename } If I call this method (all classes are enhanced) the version of the event does not increase and the updated event is not stored in the database (retrieve the event shows ... an attachment via addAttachment() method and checks in another transaction if this change was written or not

"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

combined index not used

we can see that this index is not used: Query Plan Description ====================== Step 1: Process ... (on that sample database) for further analysis? support Support we do not have that database any ... and provide a fix. support Support The reason for not using the composite index was found

Enum fields are set to null and embeddable enum class does not show in explorer

I switched to version 2.8.2 and now it seems that my enum types are not recognized and the field ... ! The enum type is also not listed in the explorer. I am talking about an enum class, which implements another interface. My List property is defined with the interface and not the specific class. Maybe

java 8 LocalDateTime is not working in query

  but it's working fine: SELECT t FROM Test t Joe Joe Khan New Java 8 date/time types are not ... compatibility card here, it is not quite working: In JPA you can use the @Convert annotation in order ... because on the one side ObjectDB is too compatible, and on the other side it is not compatible enough. I

Setting and Tuning of JPA Queries

to anyone who uses em , even before committing the transaction (but not to users

JPA Named Queries

and less so when using ObjectDB, this alternative is not covered in this manual. Using Named Queries

ObjectDB License

databases (for which licenses have been purchased) does not require additional separate licenses. Purchase

How to install ObjectDB?

ObjectDB is distributed as a zip file. Just download and extract the ObjectDB distribution zip file. No need to run any install or setup program. You can uninstall ObjectDB by deleting the ObjectDB directory. ObjectDB does not modify the registry or any other system file.

Where can I learn how to use ObjectDB?

experience in database development, SQL or JPA, but such experience is definitely not a prerequisite.

Obtaining a JPA Database Connection

does not close the database itself (that is the job of the factory as previously explained

ObjectDB 2.9 Developer's Guide

knowledge of database programming (SQL, JDBC, ORM or JPA) is not required in order to follow this guide

Chapter 6 - Configuration

file is not found default values are used. General Configuration Considerations The following rules

Posting Sample Code

protected constructor, An entity class must be a top level class, The project does not contain

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

Step 1: Install BIRT and ObjectDB Driver

of the Eclipse IDE that includes BIRT built in. This option may be useful if you are not using the Eclipse ... with no Java EE support is more complicated because of BIRT dependencies and is not covered here). To update

Step 5: Add a JSP Page

name. The Folder should be WEB-INF (to prevent accessing the JSP directly not through Spring). Click

Spring MVC JPA Tutorial - IntelliJ Project

the Server: Select  File Settings Application Servers . Add Tomcat 6 Server if not set already (Tomcat

JPA Web App Tutorial - NetBeans Project

OK . If  a browser is not opened - open it at http://localhost:8080/Guestbook/.

Step 3: Add a Context Listener Class

created if not existing yet) when the web application starts, by instantiating an EntityManagerFactory

Step 1: Create a Maven Web Project

. If it is not available - you have to install Maven Integration for WTP and create a new project. To add

JPA Tutorials

with a Servlet and a JSP: JPA Web Application Tutorial This web application does not use EJB

Step 3: Define an EJB Session Bean

application servers such as GlassFish and JBoss, and not by servlet containers, such as Tomcat

Java EE 6 JPA Tutorial - NetBeans Project

). Choose or define the server and click  OK . If  a browser is not opened - open it at http://localhost:8080/Guestbook/.

Spring MVC JPA Tutorial - Maven Project

), and port 8080 has to be available for the Jetty embedded server. It is not necessary to download

Step 1: Create a Java EE Web Project

;and Java EE 6 Web and click Next . Click the Finish button to create the project (Frameworks are not

Step 3: Add a Context Listener Class

created if not existing yet) when the web application starts, by instantiating

Step 1: Create a Java Project

We start by creating a new Java project, using: File New Project... If you are using Eclipse IDE for Java EE Developers, you can see in the [New] menu a command for creating a [JPA Project]. We are not using that type of project in this tutorial but rather an ordinary Java Project. In the [New

[ODB1] Chapter 1 - About ObjectDB

. Therefore, applications that use ObjectDB are not tied to ObjectDB. Switching to another JDO compliant ... do not have a visual browsing tool at all, or have a very limited one. Keep in mind that database

ObjectDB 1.0 Manual

(SQL, JDBC or JDO) is not required in order to follow this guide, but a strong background

JDO Predefined ID Classes

but should not be used as the type of a primary key field in a persistence capable class. For example

JDO Annotations for Mapping (ORM)

The following JDO annotations and enums are designated for mapping a JDO object model to a relational database, and are not required by ObjectDB: ObjectDB silently ignores all the above annotations.