Custom data types

10 views
Skip to first unread message

jdevelop

unread,
Mar 14, 2013, 3:03:46 PM3/14/13
to circumfl...@googlegroups.com
Hello!

Can somebody please point me to handling of custom data types? For example, in myBatis there is concept of 'type handler', which may convert custom domain objects from/to database primitive types like string, ints and byte arrays.

Now I have ObjectId type, which is just set of bytes. I want to use it in PostgreSQL as 'bytea' column, so I need some way to 'serialize' it to byte array / read from byte array.

How should I implement this?

Thanks!

Valery Aligorsky

unread,
Mar 15, 2013, 2:02:42 AM3/15/13
to circumfl...@googlegroups.com
Hello, 

You can find a simple implementation of BYTEA type in circumflex ORM.

See BinaryField at

Best regards, 
Valery Aligorsky
Reply all
Reply to author
Forward
0 new messages