Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Hibernete adapter for Casbin

License

NotificationsYou must be signed in to change notification settings

jcasbin/hibernate-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codebeat badgeGitHub ActionsCoverage StatusjavadocMaven CentralDiscord

Load policy fromHibernate or save policy to it.

Usage

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.

Supported Databases

Currently supported databases:

MySQLOracleSQL Server 2012

[8]ページ先頭

©2009-2025 Movatter.jp