]
Koen Aers commented on JBIDE-19427:
-----------------------------------
Yes, I'll take care of it.
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.Alpha2
Attachments: Screen Shot 2015-03-10 at 2.39.46 PM.png
Student entity is defined as:
@Entity
@XmlRootElement
@NamedQuery(name="findAllStudents", query="select s from Student s")
public class Student implements Serializable {
Persistence.xml is defined as:
<?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>
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.