lariat

Morphia extension that transparently archives old versions of entities allowing for rollbacks

Лицензия

Лицензия

Категории

Категории

Ant Компиляция и сборка
Группа

Группа

com.antwerkz.lariat
Идентификатор

Идентификатор

lariat
Последняя версия

Последняя версия

0.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

lariat
Morphia extension that transparently archives old versions of entities allowing for rollbacks
Ссылка на сайт

Ссылка на сайт

https://github.com/evanchooly/lariat
Система контроля версий

Система контроля версий

https://github.com/evanchooly/lariat

Скачать lariat

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.antwerkz.lariat/lariat/ -->
<dependency>
    <groupId>com.antwerkz.lariat</groupId>
    <artifactId>lariat</artifactId>
    <version>0.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.antwerkz.lariat/lariat/
implementation 'com.antwerkz.lariat:lariat:0.2'
// https://jarcasting.com/artifacts/com.antwerkz.lariat/lariat/
implementation ("com.antwerkz.lariat:lariat:0.2")
'com.antwerkz.lariat:lariat:jar:0.2'
<dependency org="com.antwerkz.lariat" name="lariat" rev="0.2">
  <artifact name="lariat" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.antwerkz.lariat', module='lariat', version='0.2')
)
libraryDependencies += "com.antwerkz.lariat" % "lariat" % "0.2"
[com.antwerkz.lariat/lariat "0.2"]

Зависимости

test (2)

Идентификатор библиотеки Тип Версия
org.testng : testng jar 6.8.1
com.jayway.awaitility : awaitility jar 1.6.1

Модули Проекта

Данный проект не имеет модулей.

Lariat

A semi-experimental extension to morphia that transparently archives old versions of your entities and allows for rollbacks to previous states. e.g., the class below will be archived in to the collection records_archive and will keep only the last 3 versions. More docs and examples are (probably) on the way but for now see LariatTest.java.

    @Entity("records")
    public class Record {
        public static final int MAX_ARCHIVE_COUNT = 3;

        @Id
        private ObjectId id;
        private String name;
        private String content;
        @Version
        @Archived(count = Record.MAX_ARCHIVE_COUNT)
        private long version;
    }

Версии библиотеки

Версия
0.2
0.1