hibernate - Mapping PostgreSQL XML type to byte[] field of entity bean -



hibernate - Mapping PostgreSQL XML type to byte[] field of entity bean -

we need map xml field in postgres table java entity field of type byte[]. using hibernate orm.

please allow know best method this.

thanks!

this done implementing org.hibernate.usertype.usertype interface.

then annotated entity given below:

@column(columndefinition="xml") @type(type="app.domain.xmltype") private string contentxml;

hibernate postgresql java-ee jpa hibernate-mapping

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

ubuntu - Bash Script to Check That Files Are Being Created -

Php operator `break` doesn't stop while -