View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821838#3821838
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821838 this is a question (at end) about the internals of the type-mapping process: i've created a new type-mapping for mysql, for a custom serializable object. lets say for the sake of argument that this object just encapsulates a single 'int' field. currently, jboss seems to do some custom serialization of the object, and thus the sql-column type is just 'blob'. thus, i use this type mapping: <java-type>com.companyx.MyCustomObject</java-type> <jdbc-type>BLOB</jdbc-type> <sql-type>BLOB</sql-type> what i would like to do instead is: <java-type>com.companyx.MyCustomObject</java-type> <jdbc-type>INTEGER</jdbc-type> <sql-type>INTEGER</sql-type> but can't because i don't know of any way jboss could figure out the object merely encapsulate an 'int' field, and just write that integer to the table column. the reason i want to this is that there can then be other clients of the database, for instance perl or c++, etc etc..., which can then just read 'integers'. otherwise, the database is specific to java & jboss when there are serialized java objects in it. the only reason is see how this can be done is if somehow my 'MyCustomObject' implements a special interface that lets jboss marshall/unmarshall as a simple integer in the database. is there any such special interface to allow this sort of type-mapping customization? or is there another way to do ti? thanks, mike ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
