I'm trying to persist objects to a database that I must write to via a propreitary API, and though I have noted the ability to specify a custom persister in the hibernate mapping, I haven't been able to find much information regarding implementing this interface. Any pointers? Or are the API docs of the EntityPersister interface the closest I am going to get? I need to use the propreitary API only to write to the database; I can read from it normally using SQL, so one solution I have reached some success with is hacking the jTDS driver and intercepting all insert and update statements, rerouting them as appropriate. Any tips on a more kosher approach would be really appreciated. Plus, I'd be happy to document this if I have any success and share it with the community. Thanks!
|