rafie / rghibernate

A Write-Behind and Write-Through recipe for RedisGears using Hibernate

Home Page:https://redisgears.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

license release CircleCI Codecov Known Vulnerabilities

rghibernate

Forum Gitter

RedisGears Hibernate based write-behind

Snapshots

  <repositories>
    <repository>
      <id>snapshots-repo</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </repository>
  </repositories>

and

  <dependencies>
    <dependency>
      <groupId>com.redislabs</groupId>
      <artifactId>rghibernate</artifactId>
      <version>0.0.3-SNAPSHOT</version>
    </dependency>
  </dependencies>

Getting started

  • Change ./src/test/resources/hibernate.cfg.xml according to your database
  • Creating a mapping xml files match hibernate format (look at ./src/test/resources/Student.hbm.xml) for example
  • Deploy rghibernate to RedisGears
python3 ./gears.py <mapping_file_1> [<mapping_file_2> ...]

About

A Write-Behind and Write-Through recipe for RedisGears using Hibernate

https://redisgears.io

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Java 85.7%Language:Python 14.3%