Unlikely Teacher

1. Share Everything* [Programming Gotchas, Technology News, Insights on Living and Everything in Between]

Entries Tagged as 'JPA'

TopLink JPA and HSQLDB Quirk

May 14th, 2008 · 8 Comments · Java

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: ··

Flex, BlazeDS and JPA

April 18th, 2008 · 13 Comments · Flex, Java

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: ·····

Pro EJB 3 – Java Persistence API for $10

April 12th, 2008 · 1 Comment · Books, Java

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 Injection in JSF Managed Beans

April 1st, 2008 · 5 Comments · Java, Programming

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: ·····