ormlite-core icon indicating copy to clipboard operation
ormlite-core copied to clipboard

ORMLite not working with Jakarta Persistence API.

Open infinite-dev22 opened this issue 1 year ago • 0 comments

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.

infinite-dev22 avatar Jul 05 '23 16:07 infinite-dev22