- Notifications
You must be signed in to change notification settings - Fork8
Hibernete adapter for Casbin
License
NotificationsYou must be signed in to change notification settings
jcasbin/hibernate-adapter
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Load policy fromHibernate or save policy to it.
First, Introduce it in the pom.xml:
<dependency> <groupId>org.casbin</groupId> <artifactId>hibernate-adapter</artifactId> <version>1.0.0</version></dependency>
Then you can use it in your project like this:
Enforcere =newEnforcer("examples/rbac_with_domains_model.conf");Adapteradapter =newHibernateAdapter(DRIVER,URL,USERNAME,PASSWORD,true);e.setAdapter(adapter);e.loadPolicy();
If you use Oracle, the last entry of the parameter must be set totrue.
Currently supported databases:
MySQLOracleSQL Server 2012About
Hibernete adapter for Casbin
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Contributors7
Uh oh!
There was an error while loading.Please reload this page.