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 -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -