ormlite-core
ormlite-core copied to clipboard
ORMLite not working with Jakarta Persistence API.
Discussed in https://github.com/j256/ormlite-core/discussions/284
Originally posted by infinite-dev22 July 5, 2023 This is my sample class entity using Jakarta.
import jakarta.persistence.*;
@Entity
public class Supplier {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
@Column(nullable = false)
private String name;
....
// Getters and Setters.
....
}
When I run the project in IDEA, ORMLite throws an SQLException
of No Database Fields defined
Does ORMLite support Jakarta Persistence API or it still uses Java Persistence API.
Thanks in advance.