Open themitchy opened 13 years ago
Currently this is not possible. For simplicity of implementation the identifier is always an automatically generated 'id' field. persistence.js also wasn't really designed to be used with existing database schemas. If have the chance to improve this support, go right ahead :)
I'm trying a simple task of extracting an identity from a table. That table doesn't have an id column(it's key column is called
Key
). Persistence generates sql that expects the id column and then fails.Results in the sql:
Is there any way to suppress the selection of an id column?