[hibernate-issues] [Hibernate-JIRA] Commented: (OGM-12) Support more GridTypes

Nicolas Helleringer (JIRA) noreply at atlassian.com
Wed Mar 30 09:43:08 EDT 2011


    [ http://opensource.atlassian.com/projects/hibernate/browse/OGM-12?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41898#action_41898 ] 

Nicolas Helleringer commented on OGM-12:
----------------------------------------

In org.hibernate.type.descriptor.java.UrlTypeDescriptor :

public <X> X unwrap(URL value, Class<X> type, WrapperOptions options) {
	if ( value == null ) {
		return null;
	}
	if ( String.class.isAssignableFrom( type ) ) {
		return (X) toString( value );
	}
	throw unknownUnwrap( type );
}

sounds strange that a call with unwrap( new URL("http://www.hibernate.org"), URL.class, null) shall fail with a : 

org.hibernate.HibernateException: Unknown unwrap conversion requested: java.net.URL to java.net.URL

no ?


> Support more GridTypes
> ----------------------
>
>                 Key: OGM-12
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/OGM-12
>             Project: Hibernate OGM
>          Issue Type: New Feature
>            Reporter: Emmanuel Bernard
>            Assignee: Nicolas Helleringer
>
> Today we only support basic numeric and string types
> We should support other types like URL, BigDecimal etc

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list