Unlikely Teacher

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

Entries Tagged as 'TopLink'

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