Hi:
I am build a role-user-operation-permission related system,so I create some model,set their associations in the annotation.
However when I use the sechemaexport.create(true,true),I can not get the right result.
So I wonder if there is something wrong with my configuration?
There are almost 8 object,so I think it is a bad idea to post it here,I upload it here
http://www.filedropper.com/hibernatemapping_1.
The zip file contain 3 folder:
src:the source codes,all the model objec are here,it caontain the following class:Department:it can contain many users/tasks(the task is published by whom belong to this department)
Task:a task can only belong to one department.
User:a user can only belong to one department.He can publish many task as long as he own the permission.
Operation:just operation like add/mofify(how to do)
Resource:the object of the permission(to whom),the task or user are all resource.Since they can be added/removed..
Permission: a operation and a resource make up a permission. For example,add(operation) a task(resource) is a permission.
Role:it means more than one permission,for example,normally one person can only publish task of his own department,but if set his role to a departmetn_cross role,he can publish task accross department.
res:the configuration file,such as hibernat.cfg.xml log4j.properties test:the object I use to generate the schema.Hope someone can have a check, Thanks!