ObjectDB ObjectDB

Internal Website Search

161-170 of 200 resultsRefresh
2

Adding EntityListener Throws Unexpected Internal Exception

the following ObjectDB code: for (Class l = listenerClass; l != Object.class; l = l.getSuperclass ... ? If you try the code above on your listener class in a console application, probably no exception will be thrown, so it may be related somehow to your environment and class loading. ObjectDB (in the code
2

Object explorer cannot open odb file. ObjectDB many-to-many relationship

I created a data model to test many-to-many relationship with a link table as following (full code in attachement) @Entity public class User {     @Id     private String code;     @OneToMany ... public class Project {     @Id     private String code;         @OneToMany(mappedBy = "project
2

How to do multithreading with embedded ObjectDB

Hi, I've tried to implement a counter with ObjectDB, but the following code doesn't work as ... ());         em.close(); The result I expect has to be X coordinate is 100 but in reality, the code prints out different result: 2 What's wrong with my code? johnvu John Vu You can fix your code by
2

Query Method NullPointerException on List iteration

Code: public int countCategory(String categoryName) { int count = 0; for (Product p ... the product list in java code? MaxBri Maximilian Brinkema It is unclear from the question ... ) when trying to iterate over the product list: for (Product p : products) { // code.. } All suppliers
2

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

results="2048mb" programs="1024000" />   <extensions drop="temp,tmp" />   <activation code="XXXX-XXXX ... detail all the code of generic functions, but a piece of logic is this: private void root(Class<?> type ... this problem into a simple test case because of code complexity, it is quite likely that the complex code
2

Criteria query error: Unexpected query token

) at com.objectdb.o.ERR.f(ERR.java:59) at com.objectdb.o.OBC.onObjectDBError(OBC.java:1398) Code ... ; } } The same code, against a PostgreSQL jta datasource works fine however. Is there anything glaringly wrong with my code I'm failing to see? Or is Criteria a W.I.P? Cheers Willks William
2

Request clarification of changes to accessor enhancement policy (non-getter prefix instead of getter suffix) AND annotations

without too much fiddly coding, but it's still a major inconvenience. As far as I can tell, this change ... with the original names. The original code and the original annotations remained unchanged ... may have to remain with the original code, so this could still break things and require additional adjustment
2

Update is ignored by ObjectDB

the database, and User entity remains modified only in code, even if I go: user = smdb.find(User ... direct access to fields simplifies code porting and direct JSON parsing. User has 100+ fields ... rather than the enhancement. Enhancement is used but not only entity classes are enhanced but also any code that accesses
0

Indexes broken after schema update

:42:25 #78 store] Request code: 4 [2012-08-19 19:42:25 #79 store] Request Key: 'chrisiona-decc' [2012-08-19 19:42:25 #80 store] Request Key Code: -25 [2012-08-19 19:42:25 #81 store] Request Real Key: 'chrisiona-decc' [2012-08-19 19:42:25 #82 store] Request Real Key Code: -25 [2012
0

NullPointerException: Cannot invoke "com.objectdb.o.RFV.S()" because "<local9>" is null

. This code reproduces the error: public class NullTest {     @Entity     @Indices ... for the hint with the query. I used the correct query in the code above but the exceptions is still thrown. But only for the first time you run the code. If you run the code with existing foo.odb and second

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support