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
Post a Comment