org.femtoframework.orm:orm-hikari

Femto useful utilities

License

License

Categories

Categories

ORM Data
GroupId

GroupId

org.femtoframework.orm
ArtifactId

ArtifactId

orm-hikari
Last Version

Last Version

7.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

Femto useful utilities
Project Organization

Project Organization

FemtoFraemwork

Download orm-hikari

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
com.zaxxer : HikariCP jar 3.3.1
org.femtoframework.orm : orm-core jar 7.0.0
org.femtoframework.util : femto-util jar 7.1.0

test (4)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.18.6
org.apache.derby : derby jar 10.14.2.0
org.femtoframework.coin : coin-core jar 7.2.0
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

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

Versions

Version
7.0.0