org.femtoframework.orm:orm-core

Femto useful utilities

Лицензия

Лицензия

Категории

Категории

ORM Данные
Группа

Группа

org.femtoframework.orm
Идентификатор

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

orm-core
Последняя версия

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

7.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

Femto useful utilities
Организация-разработчик

Организация-разработчик

FemtoFraemwork

Скачать orm-core

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

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

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.femtoframework.util : femto-util jar 7.1.0

test (4)

Идентификатор библиотеки Тип Версия
org.projectlombok : lombok jar 1.18.6
org.apache.derby : derby jar 10.14.2.0
com.zaxxer : HikariCP jar 3.3.1
junit : junit jar 4.12

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

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

Java Micro ORM

Why Femto-ORM

Femto-ORM provides a simple way to map your POJO with relational database instead of creating SQL. And you also don't want Hibernate or Spring Data to bring you free features you don't need.

If you are going to find a total solution, please choose Hibernate or Spring Data.

Samples

import lombok.Data;

@Data
public class Device {
    
    private int id;
    
    private String model;
    
    private String productNo;
    
    private String uuid;
}
import org.femtoframework.orm.Repository;
import org.femtoframework.orm.RepositoryException;

public class DeviceServiceImpl implements DeviceService {
    
    @Inject
    Repository<Device> repository;
    
    public Device getDevice(int id) throws RepositoryException {
        return repository.getById(id);
    }
    
    public List<Device> listAllDevices() throws RepositoryException {
        return repository.listAll();
    }
    
    public boolean addDevice(Device device) throws RepositoryException {
        return repository.create(device);
    }
    
    public List<Device> searchDevicesByProductNo(String key) throws RepositoryException {
        return repository.listBy("product_no LIKE '%?%'", key);
    }
    
    public List<Device> deleteDevice(int id) throws RepositoryException {
        return repository.deleteById(id);
    }
}

org.femtoframework.orm

FemtoFramework

Femto Service framework

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

Версия
7.0.0