ObjectDB Database Search

51-100 of 200 results

Grouping by date()

have to group by date(). For few queries I was concatenating 'date' from year()-month()-day() calls ... with new version. When you group by date() there are two days per day. I mean group by divides each day ... with this issue. Query: select hour(ov.created), count(ov) from ObjectView ov group by hour(ov.created) order by

Help with JPA2 Criteria and conditional operator grouping

; )));   System.out.println("Query: " + c); But I can can never get the grouping to occur ... persistence.xml shows the grouping happening. I've had to dumb down the domain model enough to convey ... . support Support That fixed the conditional grouping issue. Thanks.   There is a new problem now however, I'll create a new post Willks William

ObjectDB Roles and Groups

Hello, How can I incorporate roles/ group in ObjectDB config file? I see no support for this. For example, I would like to place several users under a given group or role, but I see no way of doing this as no such element is present  in the config file. Is it possible to have this? st.clair

Group by: list if no aggregate function is specified

Hello! In a query like SELECT parent, children FROM Parent parent LEFT JOIN p.children children GROUP BY parent  maybe it would be good if it will return a list of Object[2], where the second object is a list of children of a parent. Because creating a query to get a list of parents

ID format in objectdb 2.x for JDOHelper.getObjectId

db tuotrial. I am just wondering, in objectdb 1.x, when i am tring to get the object id ... .toString() = 3:1 , which is not an integer and this object has two feild object id and type id ... .x to 2.x. And how can i just get the object id without type id . Thanks, Binit binitbhaskar Binit

Get multiple entities by Id

I'm trying to fetch a list of entities, by their Id . I Use this query: SELECT c FROM User c WHERE c. id IN : ids This querey works as long as I don't set the property " id " as @ Id . If i set @ Id to any other member, this query works, if I set id as @ Id , it stops working and gives zero results

IDs of Entities suddenly became UUIDs?

do have a UUID String as their id instead of Long which is of course causing a lot of troubles. Note ... ID , others a String UUID. Our Base-Entity everything inherits from is declared as usual with Long: @ Id @GeneratedId private Long myId; This has always been working, however, suddenly partial Objects in

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

for field uk.co.his.experiment8.cmdline.objdb.CompoundKeyMapItem.container (javax.persistence. Id ... .container (javax.persistence. Id , javax.persistence.ManyToOne) at com.objectdb.o.MSG.d(MSG.java:61 ... .persistence.FlushModeType; import javax.persistence. Id ; import javax.persistence.NamedQueries; import

Wrong @Id type

Hi,  I have noticed some values of id column suddenly switched to int ... / To repair IDs that have already changed their types you will have to 'touch' the objects and store them again, or use an ObjectDB version before the fix, with an UPDATE queries that change the IDs

EntityManager.find(entityClass, primaryKey) is slow when accessing non-existent IDs

* * EntityManager.find(entityClass, primaryKey) is slow when accessing * non-existent IDs . * * Select queries process non-existent IDs fastest. * */ public class OdbEmFindById { public static final int EVALUATION_LIMIT = 1000000; @Entity public static class X { @EmbeddedId public XId id ; public X() { } public X

Populating entity id before transaction commit

Hi, I have a question about populating auto generated id before transaction commit. We are using ... transaction is committed so all returned entities are not populated with ID in this context. How can I force ODB to populate entity ID before transaction is committed? Or maybe there is another way

Change Sequcene Id

could I change sequcence id ? allocating small value may not be effect. or something other ways ... MyEntity is defined with JPA @Entity public class MyEntity {     @ Id     @GeneratedValue(strategy=GenerationType.IDENTITY)     private Long id ; }   Tsu

multi thread application, id field sporadically null

with the field that is declared as @ Id having the value null (what is not correct, we checked ... Serializable { private static final long serialVersionUID = 1L; @ Id public String nodePath; ... as soon as ... how exactly you create, persist and retrieve the objects. Except the id field, are other fields

Immediately retrieve unique id

= GenerationType.SEQUENCE, generator = "sampleSeqGenerator") @ Id long id ;   The id field is as expected ... etc. that makes use of the id . How do I capture that id without roundtripping? I see pre and post commit, but pre the id isn't generated yet, and post I would have to somehow resave. mbcladwell

Uninitialized primary key (id = 0)

is id =0. What situation will be id =0? TIA gzdillon Lai Yang This happens if you define an id field ... ; @GeneratedValue should solve the problem, unless you already have entity objects with IDs 0 ... table - you can set an initial ID which is larger than any existing ID to avoid any conflict. support Support

Schema Update

The configuration element supports renaming packages, classes and fields in ObjectDB databases as a complementary operation to renaming or moving these elements in the IDE during source code ... with persistable classes that have been renamed or moved in the IDE , with no matching schema configuration

Defining a JPA Entity Class

you might have noticed that the Point entity class has no primary key ( @ Id ) field. As an object database, ObjectDB supports implicit object IDs , so an explicitly defined primary key is not required

Shared (L2) Entity Cache

= cache. contains (MyEntity.class, Long.valueOf( id )); Cached entity objects can be removed from the cache ... (MyEntity.class, Long.valueOf( id )); // Remove all the instances of a specific class from the cache

JPA Annotations for Classes

policy (as explained in chapter 3 ): Another JPA class annotation defines an ID class: ID classes

Chapter 1 - Quick Tour

: To run the sample program of this chapter in your IDE refer to one of the following tutorials: These tutorials provide step by step instructions on how to start using JPA in your IDE

InterfaceRef jakarta.persistence.criteria.AbstractQuery

a list of the grouping expressions. Returns empty list if no grouping expressions have been specified. Modifications to the list do not affect the query. Return: the list of grouping expressions ... ) over the grouping items, or null if no restrictions have been specified. Return: having clause

InterfaceRef jakarta.persistence.criteria.Subquery

of the grouping expressions. Returns empty list if no grouping expressions have been specified. Modifications to the list do not affect the query. Return: the list of grouping expressions Inherited from ... to the restriction(s) over the grouping items, or null if no restrictions have been specified. Return

InterfaceRef jakarta.persistence.criteria.CriteriaQuery

: AbstractQuery Since: JPA 2.0 List getGroupList () Return a list of the grouping expressions. Returns empty list if no grouping expressions have been specified. Modifications to the list do not affect the query. Return: the list of grouping expressions Inherited from: AbstractQuery Since: JPA 2.0 Predicate

Is ObjectDB better than competing object databases?

, supporting community, forums, IDEs support, tools, books, tutorials and sample code. ObjectDB

JPA Class Enhancer

the IDE In Eclipse JVM arguments can be set globally at:     Window Preferences Java

Privacy Policy

automatically, including, but not limited to, the type of mobile device You use, Your mobile device unique ID

ObjectDB - JPA Object Database for Java

flexibility - same API for Relational and Object Databases. Better community support (tools, IDEs , books

BIRT/ODA ObjectDB Driver

and restarting the IDE . Note: See this issue regarding matching the driver version to the ObjectDB server

Posting Sample Code

warnings (There is no ID defined for this entity hierarchy, The class should have a no-arg public or

Support for roles/groups in ObjectDB

ObjectDB should incorporate roles/ group in ObjectDB config file? I see no support for this. I would like to place several users under a given group or role, but I see no way of doing this as ... , there could be a role/ group element which would categorise the user further. This would help in authentication.   Thanks st.clair.clarke St Clair Clarke

AnnotationRef jakarta.persistence.ConstructorResult

: {@snippet : Query q = em.createNativeQuery( "SELECT c. id , c.name, " + "COUNT(o) as orderCount, " + "AVG(o.price) AS avgOrder " + "FROM Customer c, Orders o " + "WHERE o.cid = c. id " + " GROUP BY c. id

When using inheritance, you can specify, which ID to use

When storing objects with inheritance, it should be possible to choose, which ID (parent or child class) should be used for new object. For example: public EntityA() {     @ Id     long id ;     String field1; }   public EntityB

ObjectDB-2.6.9: Failed to commit transaction: Failed to set numeric value of field property Element.id using reflection

to set numeric value of field property com.greensoft.objectdb.test.entity.Element. id using reflection ... value of field property com.greensoft.objectdb.test.entity.Element. id using reflection (error 613 ... .test.entity.Element. id using reflection at com.objectdb.o._PersistenceException.b

Java EE JPA Tutorial - Maven Project

project in your IDE : NetBeans IDE and IntelliJ IDEA have built in Maven support.

Getting Started with JPA - Maven Project

the Maven project in your IDE : NetBeans IDE and IntelliJ IDEA have built in Maven support.

Spring MVC JPA Tutorial - Maven Project

://localhost:8080/Guestbook/ You may also open and run the Maven project in your IDE : NetBeans IDE and IntelliJ IDEA have built in Maven support.

Eclipse/JPA Spring MVC Web Tutorial

the following software: Java JDK 6.0 (or above). Eclipse IDE for Java EE Developers. m2eclipse

Java EE 6 JPA Tutorial - Eclipse Project

when the Maven project is imported into the IDE ). Choose or define the server and click  Finish

Step 3: Define an EJB Session Bean

getAllGuests() { TypedQuery query = em.createQuery( "SELECT g FROM Guest g ORDER BY g. id ", Guest.class

Step 3: Define a Spring DAO Component

() { TypedQuery query = em.createQuery( "SELECT g FROM Guest g ORDER BY g. id ", Guest.class); return

Spring MVC JPA Tutorial - Eclipse Project

project is imported into the IDE ). Choose or define the server and click  Finish . Eclipse

Eclipse/JPA Java EE Tutorial

above). Eclipse IDE for Java EE Developers. GlassFish Server 3.0.1 (or above). The last version of ObjectDB (just

Eclipse/JPA Web Application Tutorial

For this tutorial you will need the following software: Java JDK (6.0 or above). Eclipse IDE for Java EE Developers

Getting Started with JPA

, but if you prefer to start by running a live sample application in your IDE , you should be able to follow

Step 3: Define a Spring DAO Component

getAllGuests() { TypedQuery query = em.createQuery( "SELECT g FROM Guest g ORDER BY g. id ", Guest.class); return

JPA Web App Tutorial - Eclipse Project

is imported into the IDE ). Choose or define the server and click Finish . Eclipse should open an internal

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

Step 3: Define an EJB Session Bean

Guest g ORDER BY g. id ", Guest.class); return query.getResultList(); } } The GuestDao session bean (EJB

Getting Started with JPA and NetBeans

-  x and  y . For this tutorial, besides the Java JDK (8 or above) and the NetBeans IDE

Which API should I use - JPA or JDO?

and extends the availability of experienced developers, forums, IDEs support, tools, books