Skip to content

rynr/pandur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pandur

Database Abstraction for Java.

Usage

Given a Bean like this:

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "users")
public class User {

  @Id
  private Long id;

  @Column()
  private String email;

  @Column(name = "password")
  private String passwordEncrypted;

  // getters and setters
}

Then it should be possible to retrieve a User-Object by calling:

DataSource dataSource = ...;
Pandur pandur = new Pandur(dataSource, User.class);
User user = pandur.findById(User.class, 123);

Current restrictions

This is the first POC. I only can query a list of Objects. The properties need to be Long or String.
Please check the Issues for the next steps.

Links