Database Abstraction for Java.
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);
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.