سؤال

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