Hey all,
Hibernate newbie, so forgive me if this is something I just may yet not understand. I'm using the middlegen-Hibernate-R5 plugin to generate hbm.xml files from an existing database. I've written a
JavaTypeMapper to cast Binary types to byte[]. This, of course, does not work during deployment as it does not understand the byte[] 'type' from the XML.
Somewhere I came across the
net.sf.hibernate.type.BinaryType, gave that a try and setting the hbm.xml 'type' field works, but using hbm2java it does not convert it to a byte[] as I had hoped.
Further I also found this article:
http://www.hibernate.org/73.html which seems kinda what I thought net.sf.hibernate.type.BinaryType would do, but still involves modifying generated code.
Rather than trying to modify generated code (which really is a no-no in my opinion), has anyone solved this problem or have better/easier pointers to help get past this problem?
Thanky!
-D