I discovered a weird issue when using HSQLDB as database provider for TopLink JPA.
We need to explicitly include the toplink.target-database property in the persistence.xml file to make it work.
<property name="toplink.target-database" value="HSQL"/>
Without that, you are most likely to get this error below when you run your application:
Query: DataModifyQuery()
at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:304)
…
Caused [...]
[Read more →]
Tags: HSQLDB·JPA·TopLink
After several days of playing with Flex, I’ve managed to create a simple Java-based backend using BlazeDS and the Java Persistence API (JPA).
In this post, we will try to implement what used to be a very popular application (during the early days of the Internet), the “Guest Book“.
What you’ll need:
Flex Builder 3 (you can download [...]
[Read more →]
Tags: Adobe Flex·BlazeDS·Flex·Java·JPA·TopLink
Same rules as before, you can get this e-book from Apress’ daily deal site for $10 within the 24-hour period.
Pro EJB 3
This is one of the few books recommended for SCBCD 5.0 exam.
[Read more →]
Tags: EJB·EJB 3·Java·JPA·SCBCD 5
While trying to create a simple prototype for an application which uses JSF, EJB 3 and JPA, I decided to implement the suggestions from the article: Using an EJB Session Bean as a Model Facade.
I was particularly interested in injecting my EJBs to my JSF Managed Beans (the article mentioned that it should be possible [...]
[Read more →]
Tags: EJB 3·GlassFish·Java·JBoss·JPA·JSF