Is it possible to define my own implementation of the ReplicatorSpi interfaces ? I would wish to define a new DateReplicator implementation that will "downcast" all Hibernate dates (timestamp, java.sql.DateTime, ...) to the base java.util.Date, but I don't know how to "inject" it to the BeanTransformer.
Regards
Bruno
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Is it possible to define my own implementation of the ReplicatorSpi interfaces ? I would wish to define a new DateReplicator implementation that will "downcast" all Hibernate dates (timestamp, java.sql.DateTime, ...) to the base java.util.Date, but I don't know how to "inject" it to the BeanTransformer.
Regards
Bruno
You can plug in your own CustomBeanTransformerSpi to do the conversion. See example:
http://beanlib.svn.sourceforge.net/viewvc/beanlib/trunk/beanlib-hibernate-test/src/net/sf/beanlib/hibernate3/DateTest.java?view=markup
Looks like exactly what I was looking for !
Thanks you very much !!
Bruno