Easy Snippet

Tuesday, May 26, 2015

Grails / GORM database mapping Money data type on Microsoft SQL Server

import java.math.BigDecimal
class Cloth {
    ...
    BigDecimal price
    ...
    static mapping = {
        price sqlType: "money"
    }
}

reference : https://msdn.microsoft.com/en-us/library/ms378878(v=sql.110).aspx
remember, grails is java too :D
Posted by Julius Prayogo at 2:31 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: database mapping, gorm, grails, java

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Pages

  • About

Blog Archive

  • ►  2019 (4)
    • ►  December (3)
    • ►  April (1)
  • ►  2018 (2)
    • ►  July (1)
    • ►  May (1)
  • ►  2017 (3)
    • ►  June (1)
    • ►  April (1)
    • ►  January (1)
  • ►  2016 (3)
    • ►  August (1)
    • ►  March (1)
    • ►  January (1)
  • ▼  2015 (8)
    • ►  November (1)
    • ►  August (1)
    • ►  July (1)
    • ►  June (3)
    • ▼  May (2)
      • Grails / GORM database mapping Money data type on ...
      • Make uninitialized disk using diskpart
  • ►  2014 (10)
    • ►  October (3)
    • ►  July (2)
    • ►  June (2)
    • ►  May (1)
    • ►  April (1)
    • ►  February (1)
  • ►  2013 (10)
    • ►  December (1)
    • ►  October (2)
    • ►  September (2)
    • ►  August (3)
    • ►  June (2)

About Me

My photo
Julius Prayogo
View my complete profile
Simple theme. Theme images by luoman. Powered by Blogger.