ObjectDB Database Search

1-50 of 104 results

Deadlock in objectdb code

Running multi-threaded access to an embedded database using JDO, I'm getting a deadlock in objectdb code .  Thread dump attached. sjzlondon Steve Zara Thank you for this report. The thread dump ... in the code .   Is there a convenient way to introduce classes to objectdb at the start of a run

ObjectDB throws `NullPointerException` in internal code (`com.objectdb.o.ENH.b`)

ObjectDB throws `NullPointerException` in internal code (`com.objectdb.o.ENH.b`)

SELECT clause (JPQL / Criteria API)

performance and can sometimes reduce the amount of Java code needed. Note that query results ... ( c.name ), and the second is the capital city name ( c.capital.name ). The following code ... = capitalName; } } The following code demonstrates how to run this query: String queryStr = "SELECT

Database Management Settings

and 1,000,000 entities per database), you must specify a valid activation code in an element. Activation codes are generated by running the Activator utility from the command line: $ java -cp objectdb.jar com.objectdb.Activator Each computer requires a specific activation code , but you can specify

Setting and Tuning of JPA Queries

the page number (starting from 0 for the first page), the following code retrieves the results ... instance, em , are visible to any code that uses em , even before the transaction is committed ... to all result objects that the query retrieves. For example, the following code sets a pessimistic WRITE

Apache License, Version 2.0, January 2004

to software source code , documentation source, and configuration files. "Object" form shall mean any form ... to compiled object code , generated documentation, and conversions to other media types. "Work" shall ... , including but not limited to communication on electronic mailing lists, source code control systems

Storing JPA Entities

code stores an Employee entity class instance in the database: Employee employee = new Employee ... the EntityManager , or by commit . Referenced embedded objects The following code stores an Employee instance

Java 8 Enhancer Problem

weaving . Unluckily the LTW option of Spring is global. If it's enabled it also tries to find other class ... an exception which causes Spring to stop weaving .  Caused by: com.objectdb.o.InternalException ... the exception and output a log message like "Java 8 weaving currently not supported." instead

JPA Entity Fields

its methods or code . This state is reflected by its persistent fields, including fields inherited from

JPA Named Queries Annotations

Jakarta Persistence (JPA) provides annotations to define static, reusable queries at the class level, separating query logic from business code . Query definitions Declare named queries using the following annotations: Specifies a static, named query in the Jakarta Persistence Query Language (JPQL

NullPointer when accessing persistent field

you a snapshot of some of the utility dependencies )   The code being called is accessing a map declared ... and db files ( transaction is rolled back )   The packages were all enhanced ( static weaving ... java.util.Map z_registers  = new java.util.HashMap (); As before Enhancer is being run on code

[ODB1] Chapter 6 - Persistent Objects

the following code : pm.currentTransaction().begin(); Person person = new Person("George", "Bush"); Address ... code is legal and equivalent to the code above: Person person = new Person("George", "Bush"); Address ... ( ... ) ). Persistence By Reachability The Address instance in the code above also starts out as a transient object

Problem on JPA Merge Entity.

;   support Support Hi, I think that it is an ObjectDb problem. The same code with Spring, JPA, Hibernate and MySQL works.   I try to isolate to isolate the code that doesn't work and to make ... ? On create I get: /testCreate /testUpdate /refresh /updateAllInDao 60 PrimitiveNounPhrase [ code = CODE

jakarta.persistence.MapKeyTemporal

: @OneToMany @MapKeyTemporal(DATE) protected Map employees; Deprecated: Newly-written code should use

Activation Issue

, it was shutdown the laptop, and move to the office. The activation code isn't tied to IP addresses in any way ... most definitely had the activation code in objectdb.conf. Yet I was seeing that exception, no objectdb server ... code is per machine. Use your site license to generate multiple activation codes . You may also specify

Mismatch client-server protocol prefix

. Try also to consider any change in the migration of code that could cause it. More information ... at your code ), and provide more information? Is it different from what was used before migration? support Support No wed didn't change anything in our DAOs. This is the code which raises the Exception

Embedded List

about the question. On #1 and #3 you provided code . Is it runnable? What is the exact issue? support Support So the code is runnable if you have the 2 files from the first comment, I am trying to get records that have part of the strSupPart field from the Embedded class in the ItemDB class, my code looks

Source not found error after downloading ObjectDB 2.3.7_04

Code snippet: Properties prop = new Properties(); prop.setProperty("javax.jdo ... am trying to debug code snippet mentioned above in Eclipse it asks me to provide source code at debug ... any PMF.java class.   For setup I downloaded the ObjectDB zip file. Placed it in source code

jakarta.persistence.TypedQuery.setParameter(Parameter,Date,TemporalType)

-written code should use the date/time types defined in java.time . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TypedQuery.setParameter(String,Calendar,TemporalType)

argument is of incorrect type. Deprecated: Newly-written code should use the date/time types defined in java.time . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TypedQuery.setParameter(String,Date,TemporalType)

is of incorrect type. Deprecated: Newly-written code should use the date/time types defined in java.time . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TypedQuery.setParameter(Parameter,Calendar,TemporalType)

: Newly-written code should use the date/time types defined in java.time . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TypedQuery.setParameter(int,Calendar,TemporalType)

argument is of incorrect type. Deprecated: Newly-written code should use the date/time types

jakarta.persistence.TypedQuery.setParameter(int,Date,TemporalType)

argument is of incorrect type. Deprecated: Newly-written code should use the date/time types defined in java.time . Since: Jakarta Persistence (JPA) 1.0

Online backup problem

) and it doesn't seem to be related to the online backup. Please post the code that you are using to run the backup. support Support This is the code I used in my servlet : EntityManagerFactory emf = null;   ... database without any problems. The code runs, result is "OK", but no files are created in ObjectDB

zip file or JAR manifest missing

The codes is ok in MySQL, but not in ObjectDB. Before update a value, my threads will check ... Support I found this is a weird thing, the same codes run the different results in my office pc and home pc. I use svn to keep my codes . My ObjectDB path is the same. But, My home pc will get this message

Memory Leaks after COMMIT operation (checked on versions 2.6.5 & 2.6.6.b01)

what we did incorrectly or investigate how to fix it ASAP. Source code which causing memory leaks ... (); m_EntityManager.flush(); m_EntityManager.clear(); m_EntityManager.close(); } After executing code ... for mentioned code

Step 2: Entity Class and Persistence Unit

and paste to replace the new source file content with the following code : package guest; import java.io

Eclipse/JPA Spring MVC Web Tutorial

slightly different but the code would be the same). The tutorial is based on using a Maven project

Step 4: Add a Controller Class

the new Spring Controller class. Now replace the content of the new source file with the following code

Step 2: Define a JPA Entity Class

the new class. Copy and paste the following code into the newly created Point class: package tutorial

Step 4: Add a Servlet Class

to create the new servlet class. Now replace the content of the new source file with the following code

License Activation Change and Checking Activation

a different activation code . With this code it works. The only difference I can think of is that my WiFi ... . You should include both activation codes now in your configuration, so ObjectDB will work on your laptop

Activation error on Schema change

that an activation code that was generated specially for the server machine is included in ... about that, this shouldn't happen. Pre 2.3.7 activation codes should work with 2.3.7. But in the logs I ... 2.3.7 will require you to fix it and generate a specific activation code for that machine. In

Failed to commit transaction: Attempt to commit a rollback only transaction

is a groovy closure), however: that code has been running without any problem for some time. The problem arose when different code was run against the same database. ie: it appears to be related to some ... only explicitly anywhere in my code .   dmoshal David Moshal First of all - the Doctor output

Cast exception?

That seem to be the issue here, but I'm not doing any casting in the code ! Is it some casting done by ... my current web app, and I created a Point object successfully in code . So I think objectdb.jar ... at the Persistence.java source code and extracted the method that is throwing the exception: /* */ public static

How to avoid NULL values on Embedded entities

the emmbedeable Direccion not nulleable? In the code above, the optional=false, works only on fechaYhora ... clear   Edit: Sorry. Solved. The code was working, the problem was that i'm savin an empty string "" (not null) elnll002 Facundo Curti

Database connection url

sure about the connection url for the code , and for the explorer. I tried this: Transactor.emf ... a server, and how does one connect to it from code , and from explorer? dmoshal David Moshal

IDs of Entities suddenly became UUIDs?

anything in the ObjectDB code that can generate uuid values. Therefore, uuid values are probably generated ... ; myId as Long and the other with myId as String ). Also check your code for generating uuid strings

Cross-platform license

My activation code works fine on my computer Ubuntu but fails on the same machine if I boot into Windows 8.  Is the activation code restricted to an operating system?  Would I lose it's use if I upgraded Ubuntu at some point?  sjzlondon Steve Zara You should be able to use

Double persist of Entity field with Cascade.ALL

that moves all Entity manipulation  code to the Server in Netbeans project. This works flawlessly, however it might result in more complicated code for some use-cases. Running it is same as

Academic license limitations?

code in the wrong configuration file, i.e. letting ObjectDB use a configuration file other than the one that includes the activation code . support Support Thank you so much. I removed an accidental

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

under which the JVM is executed in which the code below is run does have write permissions on the folder ... Christian Code we run:     private void registerTypes() { try { EntityManager em

OEM: Too many persistable types (>10) - exceeds evaluation limit (error 1011)

. support Support Thank you for the link to the class enhancing confirmation checking code .  ... the application has an ObjectDB OEM Activation code installed). ObjectDB class enhancing HAS been performed

Problem with distinct select, order by and equivalent alias/attribute path

in the code (before loading an EntityManager) and as a run argument for the wildfly server instance ... expression, even when executing the same code with the same Entity classes as in my post before, in embedded

ArrayIndexOutOfBoundsException on flush

:151) at com.objectdb.jpa.JpaQuery.executeUpdate(JpaQuery.java:722) ... 40 more The code ... can get the test operational. felixobjectdb Richard Szurgot I hope you still have the code that caused ... , so if you can try your code with the last build of ObjectDB (with a new database) and report

Query Execution Error

in java client code . Please note that this one worked before but stopped working.. I'd be so happy ... .. Well okay, anyway the error code (NullPointerException seems to occurr) isn't very helpful :( Alex

evalution limit error on digital ocean ubuntu

Trying to run the code on Digital Ocean Ubuntu instance. Generated license and set key in objectdb conf file. It gives below exceeds evaluation error when we try to run the code . Caused by: com.objectdb.o.UserException: Too many persistable types (10) - exceeds evaluation limit at com.objectdb.o

JDO PersistenceManager.getSequence() returns null sometimes

to it. If nothing has yet been persisted, or if the odb file is not newly created, getSequence() returns null. Code ... ! That will certainly help us port our code to ObjectDB. spiffy Jonathan Harley Sequences are defined using class

UPDATE statemen crash when i put the WHERE clause.

Hello, i have a problem with a UPDATE statement. When i run the code without WHERE clause the cod is executed, but when i attach the WHERE the program stop there. The code looks like this. EntityManager em = emf.createEntityManager() ; em.getTransaction().begin() ; EntityManager updateEm = emf