You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Persist
Hi,
May be I was missing something from reading the quick start. I was
under impress that we don't
have to create schema (table) before using it. Please advise.
I got the following exception when trying call Persist.insert().
net.sf.persist.RuntimeSQLException: Class
[com.trapeze.appl.gp2.db.TestPersistentObj] specifies table
[TestPersistentObj] that does not exist in the database
at net.sf.persist.TableMapping.getTableName(TableMapping.java:279)
at net.sf.persist.TableMapping.<init>(TableMapping.java:77)
at net.sf.persist.Mapping.getMapping(Mapping.java:39)
at net.sf.persist.Persist.getMapping(Persist.java:208)
at net.sf.persist.Persist.getTableMapping(Persist.java:227)
at net.sf.persist.Persist.insert(Persist.java:1190)
at com.trapeze.appl.gp2.db.DBService.insert(DBService.java:203)
at com.trapeze.appl.gp2.db.DBService.main(DBService.java:266)
Could you confirm it is the case that we have to create table before
insert? Is there to generate the
schema from the POJO?