-->
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.  [ 3 posts ] 
Author Message
 Post subject: Schema validation:"Found: float, expected: double preci
PostPosted: Thu Mar 06, 2008 6:30 am 
Newbie

Joined: Mon Oct 16, 2006 10:23 am
Posts: 8
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
3.2.6.ga
Mapping documents:
Code:
@Entity(name = "edd_inkaartonderzoek")
@PrimaryKeyJoinColumn(name = "formulier_id")
@Proxy(lazy = true)
@VraagElement(displayName = "Inkaartonderzoek")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region = "zorgportaal.cache")
public class InkaartOnderzoekVulling extends OnderzoekVulling
{
   (...)
   public Double alat;
   (...)
}



Full stack trace of any exception that occurs:
Code:
org.hibernate.HibernateException: Wrong column type in ZORGPORTAAL.EDD_INKAARTONDERZOEK for column alat. Found: float, expected: double precision
   at org.hibernate.mapping.Table.validateColumns(Table.java:261)
   at org.hibernate.cfg.Configuration.validateSchema(Configuration.java:1089)
   at nl.topicuszorg.hibernate.spring.dao.impl.HibernateServiceImpl.validateSchema(HibernateServiceImpl.java:342)


Name and version of the database you are using:
Oracle 10g
The generated SQL (show_sql=true):
creation:
Code:
    create table edd_inkaartonderzoek (
        formulier_id number(19,0) not null,
        alat double precision,
        (...)


It seems columns created as 'double precision' in Oracle are actually added as floats. Should the validator be modified to accept 'float' metadata for 'double precision' columns when the Dialect is Oracle? Or is there some other solution?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 06, 2008 8:00 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
known limitation of schema validator

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 07, 2008 4:44 am 
Newbie

Joined: Mon Oct 16, 2006 10:23 am
Posts: 8
max wrote:
known limitation of schema validator


I see: http://opensource.atlassian.com/project ... e/HHH-1961
http://opensource.atlassian.com/project ... e/HHH-2315 .


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

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.