문제

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.

도움이 되었습니까?

해결책

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.

다른 팁

If you are willing to use an ORM, sormula makes custom types easy with TypeTranslator. See the org.sormula.tests.translator.* packages for examples.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top