Hi David,
enums are currently not supported yet, but they are planned for the
next release:
http://uwyn.com/issues/browse/RIFE-215
I first need to work on some other RIFE things, but will look at this
issue in a week or two. However, if anyone feel like looking at this
himself, it might go faster. It shouldn't be very difficult to add
since there are many other types supported and the behavior can just
be mimicked. The only tricky part is to ensure that RIFE still runs
on 1.4 and that the detection of enum presence thus needs to be done
in a dedicated class that is only loaded when a JRE 1.5 or better is
running (using
com.uwyn.rife.tools.JavaSpecificationUtils.isAtLeastJdk15())
Best regards,
Geert
On 14 Jan 2007, at 06:13, David HM Spector wrote:
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.AbstractGenericQueryManag
er$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.AbstractGenericQueryManag
er$2
useTransaction
( AbstractGenericQueryManager.java : 453 )
at
com.uwyn.rife.database.querymanagers.generic.AbstractGenericQueryManag
er$2
useTransaction
( AbstractGenericQueryManager.java : 443 )
at com.uwyn.rife.database.DbQueryManager
inTransaction
( DbQueryManager.java : 2783 )
at
com.uwyn.rife.database.querymanagers.generic.AbstractGenericQueryManag
er
_insertWithoutCallbacks
( AbstractGenericQueryManager.java : 442 )
at
com.uwyn.rife.database.querymanagers.generic.AbstractGenericQueryManag
er$4
useTransaction
( AbstractGenericQueryManager.java : 669 )
at
com.uwyn.rife.database.querymanagers.generic.AbstractGenericQueryManag
er$4
useTransaction
( AbstractGenericQueryManager.java : 580 )
at com.uwyn.rife.database.DbQueryManager
inTransaction
( DbQueryManager.java : 2783 )
at
com.uwyn.rife.database.querymanagers.generic.AbstractGenericQueryManag
er
_save
( AbstractGenericQueryManager.java : 579 )
at
com.uwyn.rife.database.querymanagers.generic.databasedrivers.generic
save
( generic.java : 117 )
at
com.uwyn.rife.database.querymanagers.generic.GenericQueryManagerDelega
te
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
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users
--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com
_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users