Created
April 11, 2010 18:56
-
-
Save robi42/362973 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Person = require('ringo/storage/hibernate').defineClass('Person', { | |
| table: 'persons', cacheable: false, props: { | |
| firstName: {type: 'string', nullable: false}, | |
| lastName: {type: 'string', nullable: false}, | |
| birthDate: {type: 'timestamp', nullable: false}, | |
| birthYear: {type: 'integer'}, | |
| vitae: {column: 'resume', type: 'text', unique: true} | |
| }}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I agree, updated package test & ringowiki/hibernate code as well as ringojs.org storage wiki page accordingly (BTW, also settled with
propertiesinstead ofprops, exclusively, now :) ).