Guest User

Untitled

a guest
Dec 6th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. ID CHAR(16) CHARACTER SET OCTETS NOT NULL
  2.  
  3. TABLE_ID CHAR(16) CHARACTER SET OCTETS
  4.  
  5. <jdbc>
  6. <driver>org.firebirdsql.jdbc.FBDriver</driver>
  7. <url>jdbc:firebirdsql:localhost:c:/DBS/DB.FDB?octetsAsBytes=true</url>
  8. <properties>
  9. <property>
  10. <key>user</key>
  11. <value>SYSDBA</value>
  12. </property>
  13. <property>
  14. <key>password</key>
  15. <value>masterkey</value>
  16. </property>
  17. </properties>
  18. </jdbc>
  19.  
  20. <forcedType>
  21. <userType>java.util.UUID</userType>
  22. <binding>com.ekser.nakkash.icdv.converters.jooq.ByteArray2UUIDBinding</binding>
  23. <expression>.*ID$</expression>
  24. <types>CHAR(16)</types>
  25. <nullability>ALL</nullability>
  26. </forcedType>
  27.  
  28. class ByteArray2UUIDBinding implements Binding<byte[], UUID>
  29.  
  30. public final TableField<MyTableRecord, UUID> ID = createField("ID", org.jooq.impl.SQLDataType.CHAR(16).nullable(false), this, "", new ByteArray2UUIDBinding());
  31.  
  32. <jdbc>
  33. <driver>org.firebirdsql.jdbc.FBDriver</driver>
  34. <url>jdbc:firebirdsql:localhost:c:/DBS/DB.FDB</url>
  35. <properties>
  36. <property>
  37. <key>user</key>
  38. <value>SYSDBA</value>
  39. </property>
  40. <property>
  41. <key>password</key>
  42. <value>masterkey</value>
  43. </property>
  44. <property>
  45. <key>octetsAsBytes</key>
  46. <value>true</value>
  47. </property>
  48. </properties>
  49. </jdbc>
Add Comment
Please, Sign In to add comment