About java ee

forum_thread

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

Hi, while working with a (standard-)JPA-query generating framework we run into an exception when ordering the results of some projection when the order by expression is different (though logically equivalent) to the projection expression. Here is the example: ... . objectdbtest . entity . Street ; import java. util . Arrays ; import java. util . List ; import ... There I get the same error still. It is a Java EE 7 project running in wildfly 9 using JPA and JTA (EJB 3.1 etc.). Where would ...

 
forum_thread

Cast exception?

Somehow I am unable to persist an entity class I wrote with manual @Id. I have a small Player class and I wish to store it with user ID as the primary key. So I declared the (only) primary key field as: @Id public int uid; This is how I'm persisting the instance: ... I'm getting a weird exception: java.lang.ClassCastException: database.entity.Player cannot be cast to ... ObjectDB (for example, it is available as part of Java EE), in addition to being part of objectdb.jar. If JPA is loaded by ...

 
forum_thread

Duplicate Entity class names causes Exception in Query

I have two Entities which have the same class name but reside in different packages, only one of them is mentioned in the persistence.xml. I a NamedQuery I use the unqualified class name of one of these entities. If I execute that query I get an exception;   ... Unexpected internal exception at com.objectdb.o.JPE.h(JPE.java:163) at com.objectdb.o.ERR.f(ERR.java:68) at com.objectdb.o.OBC.onObjectDBError(OBC.java:1456) at ... is not as complex as it looks. If you have an Eclipse EE install ( I have helios ) you only need install the glassfish 3.1 plugin and ...

 
forum_thread

Integration

Hi,   Is there a way to integrate ObjectDB with Spring Framework to add the benefits of Transaction Management and DAO Support?   Regards,... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ... Tutorials on how to use ObjectDB with Spring and Java EE (in Eclipse and NetBeans) are now available . ...

 
forum_thread

What role is the JDO in ObjectDB?

Mike Keith believe the JDO is out of date. Then what role of JDO in ObjectDB? Will our codes with JDO be out of date? <quot ... API, another persistence specification was attempted. Java Data Objects (JDO) was inspired and supported primarily by the ... important advantages such as better integration in Java EE containers (application servers). Therefore, for new applications JPA may be ...

 
forum_thread

How to enhance the JPA/Spring/MVC to implement RESTfull for CURL client?

Here is my attempt to enhance the JPA/MVC/eclipse tutorial to implement a RESTful service. Why does this not work with this curl command? I get 404. Can someone help me correct this? Do I need to change my web.xml servlet mapping in web.xml? I've been experimenting with and nothing seems to work. Thanks Siegfried Here is my web.xml fragment: ... I don't use Spring, but pure Java EE 6/7, so I can't help you further on. There are many resources on ...

 
release

2.7.1

... return type. Fixed a bug in using java.lang.Enum  as a field/property type (and not a specific enum type). ... Version 2.0.5 Fixed Java Agent / Java EE / Spring enhancement bug. Fixed a bug in merging ...

 
issue

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

objectdb-2.6.9_01 NetBeans8.1+Glassfish4.1.1 Mac OS X Possibly related: How to Use a SF with extended Persistence Context? Test mini web app at: https://www.webel.com.au/downloads/objectdb/GreensoftObjectdbTestWebMini3683.2016-09-29.tgz ... javax.ejb.EJBException: ... ... ... com.sun.proxy.$Proxy196.buildProject(Unknown Source) at ... The @Stateless builder with the extended persistence context ... on this is welcome. According to the Java EE 7 tutorial: '34.1.2.1 Lifecycle Callback Methods ...