[jboss-jira] [JBoss JIRA] (HIBERNATE-169) provide better error log for BigDecimal when creating column failed
nimo stephan (Jira)
issues at jboss.org
Mon Sep 30 12:31:00 EDT 2019
nimo stephan created HIBERNATE-169:
--------------------------------------
Summary: provide better error log for BigDecimal when creating column failed
Key: HIBERNATE-169
URL: https://issues.jboss.org/browse/HIBERNATE-169
Project: Hibernate Integration
Issue Type: Enhancement
Reporter: nimo stephan
Assignee: Steve Ebersole
Steps to reproduce:
Create a column
{code:java}
@Column(name = "price", precision = 7, scale = 10)
private BigDecimal price;
{code}
and run the schema generation.
Schema generation by Hibernate failed without pointing to the error.
In this case the precision is lower than the scale, which is not right, hence the schema generation failed. Please provide better error logging, for example:
{code:java}
"Schema generation failed: field "price" the precision must be not lower than the scale"
{code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list