{"action":"closed","issue":{"url":"https://api.github.com/repos/JadiraOrg/jadira/issues/27","labels_url":"https://api.github.com/repos/JadiraOrg/jadira/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/JadiraOrg/jadira/issues/27/comments","events_url":"https://api.github.com/repos/JadiraOrg/jadira/issues/27/events","html_url":"https://github.com/JadiraOrg/jadira/issues/27","id":48261464,"number":27,"title":"BigMoney and number of decimal places","user":{"login":"FrEaKmAn","id":232901,"avatar_url":"https://avatars.githubusercontent.com/u/232901?v=3","gravatar_id":"","url":"https://api.github.com/users/FrEaKmAn","html_url":"https://github.com/FrEaKmAn","followers_url":"https://api.github.com/users/FrEaKmAn/followers","following_url":"https://api.github.com/users/FrEaKmAn/following{/other_user}","gists_url":"https://api.github.com/users/FrEaKmAn/gists{/gist_id}","starred_url":"https://api.github.com/users/FrEaKmAn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FrEaKmAn/subscriptions","organizations_url":"https://api.github.com/users/FrEaKmAn/orgs","repos_url":"https://api.github.com/users/FrEaKmAn/repos","events_url":"https://api.github.com/users/FrEaKmAn/events{/privacy}","received_events_url":"https://api.github.com/users/FrEaKmAn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-11-10T12:55:25Z","updated_at":"2015-03-28T21:38:36Z","closed_at":"2015-03-28T21:38:36Z","body":"Based on the description of BigMoney, I'm able to store a number with unrestricted decimal place precision or at least with 5 decimal places. Using BigMoney with Jadira and PostgreSQL still creates column with type decimal(19, 2).\r\n\r\n    @Entity\r\n    @Table(name = \"sensors\")\r\n    @TypeDef(name = \"MoneyAmountWithCurrencyType\", typeClass = PersistentBigMoneyAmountAndCurrency.class)\r\n    public class Factory\r\n    {\r\n        @Columns(columns = { @Column(name = \"electricity_cost_currency\", nullable = false), @Column(name = \"electricity_cost\", nullable = false) })\r\n        @org.hibernate.annotations.Type(type = \"MoneyAmountWithCurrencyType\")\r\n        public BigMoney electricityCost;\r\n    }\r\n\r\nThis is my entity. Should I use some other Persistant..? or should I alter @Column(columnDefinition)?"}}