2 Newbie Questions on SQLPO

0 views
Skip to first unread message

Vidal Graupera

unread,
Mar 21, 2009, 10:51:32 PM3/21/09
to sqlitepersistentobjects-user
Hi,

1. How do you change the default name of the table for a class?

2. Is there anyway to change the unique id from column "pk" to another
column?

Thanks,

Vidal.

Jeff LaMarche

unread,
Mar 23, 2009, 11:36:09 PM3/23/09
to sqlitepersistentobjects-user
You could change the dfault name of the table by overriding +tableName
and specifying a different value. The default implementation creates a
tablename based on the class name.

As for changing the unique id from pk, that would require changing a
lot of code. That value is currently hardcoded into the system. It
would be a non-trivial change.

Jeff

Vidal Graupera

unread,
Mar 24, 2009, 4:34:35 PM3/24/09
to sqlitepersistentobjects-user
Thanks!
Reply all
Reply to author
Forward
0 new messages