How can I set Customized Type Mappings in JDBC when using collection pool ? I'm using BoneCP. Calling getTypeMap/setTypeMap
ever time I get Connection
object is a bit inconvenient.
Asked
Active
Viewed 87 times
0

expert
- 29,290
- 30
- 110
- 214
-
1You might be able to use [`ConnectionHook`](http://jolbox.com/bonecp/downloads/site/apidocs/com/jolbox/bonecp/hooks/ConnectionHook.html) with the `onAcquire()` or `onCheckOut()`. Not sure though, so I am just commenting instead of answering. – Mark Rotteveel Jun 04 '13 at 15:24
2 Answers
0
Unfortunately it's not possible therefore I had to modify MySql Java Connector to support UUID type.
If anyone knows better solution please feel free to correct me.

expert
- 29,290
- 30
- 110
- 214
0
If you are willing to use an ORM, sormula makes custom types easy with TypeTranslator. See the org.sormula.tests.translator.* packages for examples.

Jeff Miller
- 1,424
- 1
- 10
- 19