Hibernate uses method calls to get the default values ββfor the properties of a domain class. How to configure direct access to fields using GORM?
It is not supported directly, but will be in 1.4. For now, you can enable it with a custom subclass of Configuration, as described in http://grails.1312388.n4.nabble.com/GORM-setting-access-quot-field-quot-td1592837.html#a1594428
I made a small entry about subclassing the configuration with links to specific examples at http://burtbeckwith.com/blog/?p=465
I suggest that this is due to the fact that groovy implements the Beans agreement , so it cannot be configured for GORM.
Source: https://habr.com/ru/post/1337769/More articles:Sharepoint 2010 Create a PDF document in a document library - pdfWhat is the problem with groupTableViewBackgroundColor on iPad? - background-colorsplit UITableView derived from pList - iosHow to write a Mac OSX application from scratch? - macosIs it possible to get the actual type from the stack trace? - reflectionAre performance counters the best way to implement and average per second? - .netprevent compilation from dSYM generation on OS X (using make) - c ++Do I need to destroy the tooltip? - c ++XML file formatting: indentation - javaKohana ORM custom methods in models - phpAll Articles