[jbosstools-issues] [JBoss JIRA] (JBIDE-18565) Default generated entity is invalid
Max Rydahl Andersen (JIRA)
issues at jboss.org
Fri Oct 10 08:20:11 EDT 2014
[ https://issues.jboss.org/browse/JBIDE-18565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010612#comment-13010612 ]
Max Rydahl Andersen commented on JBIDE-18565:
---------------------------------------------
yeah so the wizard is provided by Eclipse Dali which currently requires you to manually add a checkbox for the id/key on second page.
I agree it would make sense to have a long id; setup by default that users can keep or just remove in the table on second page.
Bug for dali that should get opened at bugs.eclipse.org.
> Default generated entity is invalid
> -----------------------------------
>
> Key: JBIDE-18565
> URL: https://issues.jboss.org/browse/JBIDE-18565
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: hibernate, upstream
> Reporter: Arun Gupta
> Fix For: 4.3.x
>
>
> Code for a default generated JPA entity looks like:
> package org.svcc;
> import java.io.Serializable;
> import javax.persistence.*;
> /**
> * Entity implementation class for Entity: Student
> *
> */
> @Entity
> public class Student implements Serializable {
>
> private static final long serialVersionUID = 1L;
> public Student() {
> super();
> }
>
> }
> This is an invalid entity because each JPA entity must have a primary key.
> For a simpler OOTB experience, generate a default primary key.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the jbosstools-issues
mailing list