Hi,
I have a column of type blob that intends to hold some XML elements.
My question is, how can I map a property to a certain element contained
in this blob column?
I mean for something like the @XMLPath (that defines
the path to the element on a given XML document) on the next
example:
Code:
@Entity
@Table(name = "tbl_content")
public class XPathable {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
public Long id;
@Column(name="as")
@XMLPath("long_element")
public Long xmlElement;
}
And the blob column content:
<long_element>
5
</long_element>