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

Delphi change the assembly code of a running process -

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

C++ 11 "class" keyword -