Issue Details (XML | Word | Printable)

Key: GRAILS-2530
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Graeme Rocher
Reporter: Matt Lentzner
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Grails

User Guide does not have documentation on Basic Value Types and how they are mapped to the Database

Created: 25/Feb/08 02:42 PM   Updated: 12/May/08 09:17 PM   Resolved: 12/May/08 09:17 PM
Component/s: Documentation
Affects Version/s: 1.0.1
Fix Version/s: 1.0.3

Time Tracking:
Not Specified

Environment: N/A


 Description  « Hide

The current User Guide does not delineate what the Basic Value Types (ex. String, Integer, Date) are and how they are mapped from Groovy to the Database. For example, String maps to VARCHAR unless your maxSize constraint is over 255 (in most cases) in which case it will be a CLOB or TEXT. Knowing this before the database is created will save a lot of anguish later. I'm sure there are others like this. The basics can be cribbed right from the Hibernate docs, but the zingers (in my example) need to be written up by some one with intimate knowledge.

IMO, BVTs should be listed in the left bar so people can link directly to it.



Matt Lentzner added a comment - 25/Feb/08 05:53 PM

OK, so I found the part where the "zinger" I mention is explained. So it's there, but I still think the BVTs should be listed and maybe link to this advanced part at the end of the GORM section.


Marcos Silva Pereira added a comment - 04/Apr/08 03:58 PM

Because Grails uses Hibernate, I think that would be more appropriated just alter the Grails docs to refer to Hibernate docs section that explain types:
http://www.hibernate.org/hib_docs/core/reference/en/html/mapping.html#mapping-types


Lee Butts added a comment - 12/May/08 09:17 PM

Added a link to the Hibernate docs relating to BVTs to section 5.5.2.1