Hi, I'm sorry that I have another problem report. Recently I wanted to have a Mapper with a String uuid as primary key. I found out that MappedStringIndex does that. It didn't work though.
Using it with with a derby driver threw this exception: Caused by: java.sql.SQLException: 'ID' cannot be a column of a primary key or unique key because it can contain null values. The create table looked here like it generated the id itself, so the lift generated id isn't saved in the db. The H2 driver did this: CREATE TABLE myuuidmapper (id VARCHAR(64)) INSERT INTO myuuidmapper () VALUES () This means the generated id was not saved in the database. I attached an example project. Boot.scala is configured for H2 as default, the derby configuration is commented out. Regards, Joachim --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
liftbug-db.tar.gz
Description: application/compressed-tar