I'd like a generalized approach to mapping from conventionally-named and conventionally-typed database objects, delivered using AMFPHP, to Flex/Actionscript naming conventions and types.
- I want to map naming conventions; SQL is case-insensitive, so our data model has column names like
object_id
. Convention, however, is that our flex objects have field names likeobjectId
. - I want to map to and from database representations of such concepts as
DATE
,TIMESTAMP
and the Flex equivalentDate
type.
This should all be bidirectional, of course. Basically, I want something that provides some of the services that Hibernate does for database to value object mapping, although ideally with a smaller volume of configuration.
All of this will be deployed in a Flex 3.x environment, so no Flex 4 suggestions, please.