Carlo Camusso (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate Tools (
https://hibernate.atlassian.net/browse/HBX?atlOrigin=eyJpIjoiYjU4ZDgwMWJm...
) / New Feature (
https://hibernate.atlassian.net/browse/HBX-2414?atlOrigin=eyJpIjoiYjU4ZDg...
) HBX-2414 (
https://hibernate.atlassian.net/browse/HBX-2414?atlOrigin=eyJpIjoiYjU4ZDg...
) Ignore composite-id in table (
https://hibernate.atlassian.net/browse/HBX-2414?atlOrigin=eyJpIjoiYjU4ZDg...
)
Issue Type: New Feature Assignee: Koen Aers (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) Created: 13/Oct/2022 08:57 AM Priority: Critical Reporter: Carlo Camusso (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
I have this table with composite primary key:
CREATE TABLE `arc_test` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`data` datetime DEFAULT NULL,
`text` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`,`data`)
) ENGINE=InnoDB;
and this hibernate reverse engineering configuration:
<hibernate-reverse-engineering>
<table name="arc_test" catalog="db">
<primary-key>
<generator class="native"/>
</primary-key>
</table>
</hibernate-reverse-engineering>
Hibernate Tools generated this two class:
public class ArcTest implements java.io.Serializable
{
private ArcTestId id;
private String text;
.....
.....
public class ArcTestId implements java.io.Serializable
{
private Integer id;
private Date data;
.....
.....
but I would like only one class like this:
public class ArcTest implements java.io.Serializable
{
private Integer id;
private Date data;
private String text;
.....
.....
is it possible add this future in Hibernate Tools generator?
(
https://hibernate.atlassian.net/browse/HBX-2414#add-comment?atlOrigin=eyJ...
) Add Comment (
https://hibernate.atlassian.net/browse/HBX-2414#add-comment?atlOrigin=eyJ...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100208- sha1:492d0ce )