I am guessing that enums and/or enum sets are not currently directly manageable in beans? I just put an enum into one of my beans and got the following when I tried to persist it to the DB...

com.uwyn.rife.database.exceptions.DatabaseException

Setting a typed parameter is not supported for index '1', target type 'com.zeitgeist.nela.model.Venue$venueCapabilities and value 'NONE'.

at  com.uwyn.rife.database.types.databasedrivers.Common
   setTypedParameter
( Common.java : 462 )
at  com.uwyn.rife.database.DbPreparedStatement
   setBean
( DbPreparedStatement.java : 481 )
at com.uwyn.rife.database.querymanagers.generic.AbstractGenericQueryManager $2$1
   setParameters
( AbstractGenericQueryManager.java : 456 )
at  com.uwyn.rife.database.DbPreparedStatementHandler
   performUpdate
( DbPreparedStatementHandler.java : 58 )
at  com.uwyn.rife.database.DbQueryManager
   executeUpdate
( DbQueryManager.java : 259 )
at com.uwyn.rife.database.querymanagers.generic.AbstractGenericQueryManager $2
   useTransaction
( AbstractGenericQueryManager.java : 453 )
at com.uwyn.rife.database.querymanagers.generic.AbstractGenericQueryManager $2
   useTransaction
( AbstractGenericQueryManager.java : 443 )
at  com.uwyn.rife.database.DbQueryManager
   inTransaction
( DbQueryManager.java : 2783 )
at com.uwyn.rife.database.querymanagers.generic.AbstractGenericQueryManager
   _insertWithoutCallbacks
( AbstractGenericQueryManager.java : 442 )
at com.uwyn.rife.database.querymanagers.generic.AbstractGenericQueryManager $4
   useTransaction
( AbstractGenericQueryManager.java : 669 )
at com.uwyn.rife.database.querymanagers.generic.AbstractGenericQueryManager $4
   useTransaction
( AbstractGenericQueryManager.java : 580 )
at  com.uwyn.rife.database.DbQueryManager
   inTransaction
( DbQueryManager.java : 2783 )
at com.uwyn.rife.database.querymanagers.generic.AbstractGenericQueryManager
   _save
( AbstractGenericQueryManager.java : 579 )
at  com.uwyn.rife.database.querymanagers.generic.databasedrivers.generic
   save
( generic.java : 117 )
at com.uwyn.rife.database.querymanagers.generic.GenericQueryManagerDelegate
   save
( GenericQueryManagerDelegate.java : 93 )
at  com.uwyn.rife.cmf.dam.ContentQueryManager
   access$001
( ContentQueryManager.java : 80 )
at  com.uwyn.rife.cmf.dam.ContentQueryManager$1
   useTransaction
( ContentQueryManager.java : 473 )
25 more ...


Is there a way to handle this without my serialzing/deserializing the type names by hand?

regards,
   David
------------------------------------------------------------------------ -------------------
                                          David HM Spector
spector (at) zeitgeist.com http://www.zeitgeist.com/
                                                    ~ ~ ~
"New and stirring things are belittled because if they are not belittled, the humiliating question arises, 'Why then are you not taking part in them?'" --H. G. Wells

_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to