-->
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: persisting java7 nio.file.Path
PostPosted: Tue May 04, 2010 1:05 am 
Newbie

Joined: Tue May 04, 2010 12:42 am
Posts: 2
Hi all,
I'm new to hibernate and i'm developing an application using java 7 (trying to take advantage of the new file APIs)
the new API java.nio.file.Path is not yet recognized by hibernate, and therefor I get the following exception:
Code:
Caused by: org.hibernate.MappingException: Could not determine type for: java.nio.file.Path, at table: FILES, for columns: [org.hibernate.mapping.Column(FILE)]

Path does not implement Serializable and therefor is not supported with the current layout.
Is there a workaround for this? I'm not familiar enough with Custom User Type to understand if this is the way round...)

Thanks


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.