These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: can not get the correct schema by hbm2ddl.
PostPosted: Tue Mar 15, 2011 5:59 am 
Beginner
Beginner

Joined: Fri Nov 05, 2010 7:25 am
Posts: 21
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!


Top
 Profile  
 
 Post subject: Re: can not get the correct schema by hbm2ddl.
PostPosted: Tue Mar 15, 2011 7:31 pm 
Beginner
Beginner

Joined: Fri Nov 05, 2010 7:25 am
Posts: 21
Nobodty?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.