openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Siegel" <marc.siegel...@gmail.com>
Subject DBDictionary for SQLite
Date Fri, 26 Oct 2007 19:20:50 GMT
Hi folks,

I am trying to user OpenJPA 1.0.0 on top of SQLiteJDBC.
OpenJPA wants to insert an Id if zero for every row.

I know I need a DBDictionary subclass, I have tried making one with
  - createPrimaryKey = false
  -  lastGeneratedKeyQuery = "SELECT SEQ FROM SQLITE_SEQUENCE WHERE
NAME = \"{0}\"";

Neither of these worked. Any knowledgable suggestions?

Many thanks,
-Marc

Mime
View raw message