What are Transient Properties

Posted by Anantha Narayanan On 3:32 PM

Grails GORM by default creates all the properties on your domain as columns in database tables. We may not require such functionality. For Example in a user creation domain we may require the user to enter the confirm password along with password. We will definitely not require two columns in tables with same password (provided there is validation for that). In such cases you can map properties in domain as Transient, conveying to Grails GORM not to create a column for the property. For Example: Class Person {   static transients = ["confirmPassswd"]   String firstName  ...

Login application - Validate from Database

Posted by Anantha Narayanan On 5:17 PM

Click here to see a very basic login application with hard-coded user credentials. In current article I am discussing as on how to validate from a table where login id and password is stored. The article above points to the usage of flash and session's uses. I will not discuss more about flash and session in this article. My assumption is that a person is assigned for a login with his email id. Based on that I planned for a domain called "Person" as below (I named the application happy): package happy class Person {   String firstName   String lastName   String emailID  ...

Recommended Post Slide Out For Blogger