Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package grailsbb
- class Forum {
- Date creationDate = new Date()
- String title
- String description
- Forum parent
- static hasMany = [subForums:Forum,threads:Thread,moderators:User]
- static belongsTo = [Forum]
- static constraints = {
- parent nullable:true
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement