[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-7003) Scale = 0 doesn't supported

Lukasz Antoniak (JIRA) noreply at atlassian.com
Sat Apr 21 04:36:50 EDT 2012


    [ https://hibernate.onjira.com/browse/HHH-7003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46369#comment-46369 ] 

Lukasz Antoniak commented on HHH-7003:
--------------------------------------

Unfortunately we are not having another 3.6 release. The solution is simple and if your policy allows, you can easily fix it in your own Envers build. See commit: https://github.com/hibernate/hibernate-orm/commit/46b7a0d38e59e91d3c6b6b1e6a0200dd3118a1a6
If you need further instructions, feel free to contact me.

> Scale = 0 doesn't supported
> ---------------------------
>
>                 Key: HHH-7003
>                 URL: https://hibernate.onjira.com/browse/HHH-7003
>             Project: Hibernate ORM
>          Issue Type: Bug
>          Components: envers
>    Affects Versions: 4.0.1
>            Reporter: R. Gainullin
>            Assignee: Lukasz Antoniak
>              Labels: auditing
>             Fix For: 4.1.0
>
>
> If Audited entity consist Column with scale equals zero than Revision table create column with default scale value
> Entity class:
> @Entity
> @Audited
> public class Ent {
>     @Column(scale=0,precision=20)
>     private BigInteger field1;
> ....
> }
> For Postresql revision table:
> Table Ent_AUD{
>     field1 numeric(20, 2)
> }
> Probably error in file
>   org.hibernate.envers.configuration.metadata.MetadataTools.java
> in method
>  public static Element addColumn(...) {
> ...
>    if (scale != 0) {
>      column_mapping.addAttribute("scale", Integer.toString(scale));
>    }
> ...
>  }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list