These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Mapping a property to an XML element on a blob column
PostPosted: Tue Dec 20, 2011 3:02 am 
Newbie

Joined: Thu Oct 07, 2010 11:19 am
Posts: 6
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>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.