Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ORMLite not working with Jakarta Persistence API. #285

Open
infinite-dev22 opened this issue Jul 5, 2023 Discussed in #284 · 0 comments
Open

ORMLite not working with Jakarta Persistence API. #285

infinite-dev22 opened this issue Jul 5, 2023 Discussed in #284 · 0 comments

Comments

@infinite-dev22
Copy link

Discussed in #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant