Internal Website Search

51-100 of 200 results

ClassCastException on SELECT NEW ... after UPDATE over Java RMI

internally runs SELECT NEW ... queries. For example: SELECT NEW com.arunta.base.db.FileNameDTO(r.id ... NEW ...) and UPDATE JPQL queries on the DB via the RMI interface. What we noticed is that once we UPDATE a record from the client (via the RMI interface), all SELECT NEW ... queries

Database is erased after deploying a new web application version

Hello, I'm a new ObjectDB user and currently working on a Java web application that's running within Tomcat and uses ObjectDB. Each time I upload a new version of the web application (WAR file) and deploy it from Tomcat's manager, I get a new empty database. I assume

DB Doctor sets type to "unknown" for new fields

Hi, we are using ObjectDB 2.5.4_04 on Linux. We added two new Boolean fields to a persistable type ... for the two new fields fail. Suggestions?   Thank you Emil     prolancer Emil Andonov Nothing is wrong with the database, and the new Boolean fields look fine. Apparently your report indicates

Compare old and new schema

" the entity classes have in the old database file and compare that with the new classes definitions ... to the new one. However, you can open the old database in the Explorer (without entity classes in ... and an automatic comparison of old schema vs new schema is the only reliable way of making sure database

Error 990... and then new version?

.objectdb.com/database/issue/ new com.objectdb.o.InternalException: null com.objectdb.o ... I was about to post (here, since the provided url is restricted), I noticed there was a new release!  I hadn't noticed this because the maven instructions still show the old version, and the new

New Index causing troubles

Hello, we introduced a new index upon a String field Order.typeName, added to package.jdo as After starting our app with the new index on one database we got the following exception: 2019-02-01 04 ... .0-141-generic). Please report this error on http://www.objectdb.com/database/issue/ new com.objectdb

Join query problem with new statetment

;  "select new InspirationsPerSupplierResult(insp.id, insp.name, p.id, p.name) from ... trace the exception might not be related to using NEW . There is an unexpected state during query ... the database - the old embeddable objects and the new entity objects. For more precise diagnosis - please post

Failed to create a new file 'target\objectdb\log\archive' (error 112)

(see below) fails because ODB can't create a new file in a non-existing folder hierarchy. The user ... (Exception e) { throw new RuntimeException("Unable to pre-register " + DataStoreData.class, e); } }   ... .server:integration-test] Failed to create a new file 'target\objectdb\log\archive' (error 112) [11

Insert a new entity class in a class hierarchy does not work

Hello, we have an entity class hierarchy and we want to insert a new entity in this hierarchy ... , because the class hierarchy had already always existed and the " new " entity class needed still only the @Entity annotation, all remaining fields got null as a value. Only if the new entity

Attempt to begin a new transaction when a transaction is active

._PersistenceException: Attempt to begin a new transaction when a transaction is active root cause com.objectdb.o._PersistenceException: Attempt to begin a new transaction when a transaction is active root cause com.objectdb.o.UserException: Attempt to begin a new transaction when a transaction is active  

New to Product & Having An Issue

Greetings ObjectDB Users! I'm new to the product, and I've setup a simple test after reading ... (); this.departmentId = new DomainId(DomainId.getNewId(), DomainId.getNewId()); } @Test public void createDepartment(){ Department department = new Department(this.departmentId, "dOne", null); try{ em

NullPointerException while setting a new property value

. support Support Please try a new build - 2.4.4_02. It will not solved the problem yet, but hopefully ... while database thread is writing new data. I guess that the enhanced code should handle it somehow.   ... and the NPE is gone. We plan more testing. We create new EntityManager for every operation

Email notification about new build

Just a quick thought. It would be nice to get email notification about new builds. If a new build resolves a problem that I'm not subscribed for, I don't know about it until i check ODB page :) lwalkowski Lukasz Walkowski This is a good idea. It is now set as a website feature request in the issue tracking system. support Support

Intermittent: "Attempt to reuse an existing primary key value" when persisting a new instance

once a week during dev). This issue only happens when saving new items, never while updating an existing ... : 2.2.8_05 Willks William This might be related to a bug that was fixed in build 2.2.8_06. Please check that new build. support Support

UPDATE query to set a new field after schema change

I've added a new property/field to one of my objects and want to set the value of this (boolean) property to false for all existing entities in the DB. I tried to execute an update statement ... , without using an UPDATE query. support Support A new issue was added to the issue tracking system based

New Web Application Tutorials

New ObjectDB/JPA tutorials have been published today: Eclipse/JPA Web Application Tutorial NetBeans/JPA Web Application Tutorial The new tutorials demonstrate how to build a simple database driven web application using ObjectDB and JPA. Understanding these tutorials requires some familiarity

Locking in JPA

object. The initial version of a new entity object (when it is stored in the database for the first ... - using the  createEntityManagerFacotory method:   Map properties = new HashMap();   ... ); For an EntityManager  - using the createEntityManager method:   Map properties = new HashMap

JPA Persistable Types

to the requested mode. For example, fields date1 , date2 and date3 above may be initialized as new Date() , i.e ... type that is already in use in an existing database. New enum fields can be added safely only at the end (with new higher ordinal numbers). Alternatively, enum values can be represented internally by

FROM clause (JPQL / Criteria API)

, MEMBER, MIN, MOD, NEW , NOT, NULL, NULLIF, OBJECT, OF, OR, ORDER, OUTER, POSITION, SELECT, SET, SIZE ... of that method. Every time the from method is invoked - a new variable is added to the query. Criteria Query ... . Every invocation of  join adds a new  JOIN variable to the query. Since From is the super

Auto Generated Values

for every new entity object. These generated values are unique at the database level and are never recycled ... during commit for every new entity object. The difference is that a separate identity generator is managed ... generates an automatic value as soon as a new entity object is persisted (i.e. before commit

Literals in JPQL and Criteria Queries

= cb. literal ( new java.sql.Date()); Expression time = cb. literal ( new java.sql.Time()); Expression now = cb. literal ( new java.sql.Timestamp()); // Enum literal: Expression red = cb. literal (Color

Database Connection using JPA

= new HashMap ();   properties.put("javax.persistence.jdbc.user", "admin");    ... . If the database does not yet exist a new database file is created. When the application is finished using ... = new HashMap (); properties.put("javax.persistence.jdbc.user", "user1"); properties.put("javax

ObjectDB Object Database Features

). Java Data Objects (JDO) Complete JDO 2 support (passed the JDO 2 TCK). Support for JDO 3 new ...  and type versioning. Class hierarchy changes are handled automatically. New added fields ... , max) - for paging. Query Structure SELECT (including NEW ). FROM (including INNER JOIN , LEFT OUTER

Working with JPA Entity Objects

: New , Managed, Removed and Detached. When an entity object is initially created its state is New ... , the owning EntityManager stores the new entity object to the database. More details on storing objects

JPA Lifecycle Events

is invoked: @PrePersist - before a new entity is persisted (added to the EntityManager ). @PostPersist - after storing a new entity in the database (during commit or flush ). @PostLoad

Setting and Tuning of JPA Queries

; createEntityManagerFacotory method:   Map properties = new HashMap();   properties.put("javax.persistence ... the createEntityManager method:   Map properties = new HashMap();   properties.put("javax.persistence

Online Backup

mode a subdirectory of the ObjectDB home directory on the server side). A new subdirectory with a name ... ;backupQuery.setParameter("target", new java.io.File("c:\\backup"));     backupQuery

General Settings and Logging

( "" ) logging to file is disabled. Every day a new log file is generated with the name odb .log (where represents the date). A new log file is also generated when the log file exceeds the maximum size

Database Server

The TPC/IP port on which the server listens for new connections is also specified in the Server ... window may be blocked. Therefore, you may need a new command window for the stop and restart

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

with extended Persistence Context? [EDIT: 2006-09-29 New improved version of test mini web app with test ... ) Warning: javax.ejb.EJBException: com.objectdb.o._PersistenceException: Attempt to begin a new ... createProject( Element owner, String name) { try { Project p = new Project(owner, name); persistElement(p

Tracking changes to new collections (in enhancement mode) after flush

Hello, We have an issue with a list as a value in a hashmap. Within one transaction a new key ... = {CascadeType.REFRESH, CascadeType.DETACH }) private HashMap mappingMap = new HashMap (1); (edited ... ();         ListInMap entity = new ListInMap();      

New entity objects are duplicated on merge cascading

When merge is cascaded to a new entity object that has not been persisted ... ();         em.persist( new Book());       ... = Arrays.asList( new Chapter());         em.merge(book);   

New issues with queries using build 2.7.6_08

= config   btc_es BTC EmbeddedSystems Your new report was moved to a new thread, as ... #2153 , as discussed. You may want to check build 2.7.6_07. Build 2.7.6_08, however, includes some new ... users. Unfortunately according to your report, these changes also introduce a new issue

new objects not available in mappedBy associations

Given a mappedBy association: e.g: @OneToMany(mappedBy="department") public List employees;   creating a new mapped class, e.g. new Employee, won't result in this object being available in the same transaction: ie: for (Employee e : department.employee) won't include the new object

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 ... ), selecting  New Other... Web JSP File and clicking Next . The parent folder should be WEB-INF ...   exactly that case sensitive class name. Click  Finish to create the new JSP file. Now

Step 2: Create a Project and a Report

To use BIRT we need to create a BIRT Report project in Eclipse: Open the [ New Project] dialog box, e.g. by using File New Project... Select Business Intelligence and Reporting Tools Report Project and click Next : Enter a project name and click Finish : Now we can create a first report in the new

Step 3: Add a Context Listener Class

down), by closing the  EntityManagerFactory . To register a ServletContextListener : Open the [ New File] dialog box by right clicking the guest package node (in the [Projects] window) and selecting New ... to create the new listener class. Now replace the content of the new source file with the following

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 ... New Other... Web JSP File and clicking Next . Enter guest as the jsp file name - use exactly that case sensitive class name. Click Finish to create the new JSP file. Now replace the content

Step 1: Create a Web Project

We start by creating a new NetBeans Web Application Project: Open the [ New Project] dialog box, e.g. by using File New Project... Select Java Web Web Application and click Next . Choose a Project ... : You may have to add Tomcat 6 as a new server by clicking the Add... button . Follow the instructions and specify

Step 2: Define a JPA Entity Class

on the project in the [Package Explorer] window and select New Class . Enter tutorial as the package ... the new class. Copy and paste the following code into the newly created Point class: package tutorial ... public String toString() { return String.format("(%d, %d)", this.x, this.y); } } The new class

Step 6: Set the Spring XML

of the  web.xml file with the following new content: spring org.springframework.web.servlet ... that file: Right click the WEB-INF node in the [Package Explorer] window, select  New Other... XML ... ; copy and paste to replace the content of the  spring-servlet.xml file with the following new

Step 6: Set the Spring XML

). Use copy and paste to replace the default content of the web.xml file with the following new content ... , select New Other... and then choose the XML category, XML Document and click Next . Enter spring ... with the following new content: The settings above guides Spring to support annotations (for components

Step 1: Create a Java EE Web Project

We start by creating a new Java EE 6 Web Application project in NetBeans: Open the [ New Project] dialog box, e.g. by using File New Project... Select Java Web Web Application and click Next . Choose a Project Name (e.g. Guestbook ) and click Next . Select GlassFish Server 3 (or above) 

Step 4: Create an ObjectDB Data Set

the [ New Data Set] dialog box by right clicking the Data Sets node in the [Data Explorer] window and selecting New Data Set . Select the data source that was created in the previous step (e.g. ObjectDB ... successfully - a new window appears. In the Parameters list specify default values for low   ( 11

Step 7: Run the Spring Web App

. To install a new server check the Manually define a new server radio button (after Run As Run on Server

Step 1: Install BIRT and ObjectDB Driver

selecting Help Install New Software... In the [Work with] field enter the BIRT update site url. http ... ] dialog box by selecting Help Install New Software... In the [Work with] field enter the ObjectDB

Step 3: Create an ObjectDB Data Source

Connections to the database are represented in BIRT as data sources. To create an ObjectDB data source: Open the [ New Data Source] dialog box by right clicking the Data Sources node in the [Data Explorer] window and selecting  New Data Source . Select ObjectDB Data Source from the list

Step 3: Add a Main Class

In this step we will add a main class to the project to store and retrieve Point objects from the database: Right click the tutorial package in the [Package Explorer] window and select New Class ... (String[] args) { // Open a database connection // (create a new database if it doesn't exist

[ODB1] Chapter 7 - JDOQL Queries

)query.execute( new Integer(18)); Collection result2 = (Collection)query.execute( new Integer(21 ... "); Collection result = (Collection)query.execute(); Iteration over the new result collection returns

[ODB1] Chapter 4 - JDO Metadata

time with default values (e.g. new Integer(0) for a java.lang.Integer field, "" for a java.lang ... demonstrated above. The Index Rebuilder Tool Setting indexes for a new class that does not have persistent