[jbosstools-issues] [JBoss JIRA] (JBIDE-19427) Redundant warning for JPA entity
Koen Aers (JIRA)
issues at jboss.org
Fri Sep 4 11:23:00 EDT 2015
[ https://issues.jboss.org/browse/JBIDE-19427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13105707#comment-13105707 ]
Koen Aers commented on JBIDE-19427:
-----------------------------------
[~ArunGupta] does this problem still persist? I cannot reproduce it on my box.
> Redundant warning for JPA entity
> --------------------------------
>
> Key: JBIDE-19427
> URL: https://issues.jboss.org/browse/JBIDE-19427
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: hibernate
> Affects Versions: 4.3.0.Alpha2
> Reporter: Arun Gupta
> Assignee: Koen Aers
> Fix For: 4.3.0.CR1
>
> Attachments: Screen Shot 2015-03-10 at 2.39.46 PM.png
>
>
> Student entity is defined as:
> {code}
> @Entity
> @XmlRootElement
> @NamedQuery(name="findAllStudents", query="select s from Student s")
> public class Student implements Serializable {
> {code}
> Persistence.xml is defined as:
> {code}
> <?xml version="1.0" encoding="UTF-8"?>
> <persistence version="2.1"
> xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
> <persistence-unit name="HelloJavaEE7">
> <properties>
> <property name="javax.persistence.schema-generation.database.action"
> value="drop-and-create" />
> <property name="javax.persistence.schema-generation.create-source"
> value="metadata" />
> <property name="javax.persistence.schema-generation.drop-source"
> value="metadata" />
> <property name="hibernate.show_sql" value="true" />
> <property name="hibernate.format_sql" value="true" />
> </properties>
> </persistence-unit>
> </persistence>
> {code}
> Editor shows a red cross on Student class declaration with the error message "Class "org.sample.Student" is managed, but is not listed in the persistence.xml file".
> By default, all entities are included and this error should not occur.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list