[jbosstools-issues] [JBoss JIRA] (JBIDE-18565) Default generated entity is invalid

Jeff MAURY (JIRA) issues at jboss.org
Wed Apr 18 12:13:07 EDT 2018


     [ https://issues.jboss.org/browse/JBIDE-18565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff MAURY updated JBIDE-18565:
-------------------------------
    Fix Version/s: 4.6.x
                       (was: 4.5.x)


> 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
>            Assignee: Koen Aers
>             Fix For: 4.6.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
(v7.5.0#75005)


More information about the jbosstools-issues mailing list