Issues

Select view

Select search mode

 
50 of 253

Schema Primary Key not Inline Throws Runtime Exception in EJB3 Entity Generation

Description

When I try to run the following Hibernate Tools Ant task through Gradle (apologies, I couldn’t get your Gradle version working) I get an Exception.

 

Through Table create generation with the Autoincrement Primary Key is defined on a separate line, such as id in this BATTLES table:

 

This can be resolved user-side by simply changing the schema to the following:

 

However, this means that all Tables created through DB Browser for SQLite require schema modification after creation to get JPA Entity generation working through Hibernate Tools.

I appreciate this is most likely a minor incompatibility issue but I thought I’d raise it nonetheless.

Environment

org.springframework:spring-orm:6.2.1 org.hibernate.orm:hibernate-core:6.6.4.Final org.hibernate.orm:hibernate-community-dialects -> 6.6.4.Final org.xerial:sqlite-jdbc -> 3.47.1.0 JDK: corretto-21.0.5 OS: Linux Mint 22 Cinnamon 6.2.9 Database: SQLite

Attachments

1

Details

Assignee

Reporter

Bug Testcase Reminder (view)

Bug reports should generally be accompanied by a test case!

Bug Testcase Reminder (edit)

Bug reports should generally be accompanied by a test case!

Participants

WiseNat

Components

Affects versions

Priority

Created December 23, 2024 at 12:34 AM
Updated February 10, 2025 at 2:18 PM

Activity

Show:

WiseNat December 23, 2024 at 12:35 AM

Above is a record-less example of the DB to support issue replication.

Loading...