[
https://issues.jboss.org/browse/JBIDE-17940?page=com.atlassian.jira.plugi...
]
Jiri Peterka commented on JBIDE-17940:
--------------------------------------
[~koen.aers] Koen, sure we can. Here are improved steps that works (almost) always. Please
try them and let me know, if you're not successful we can use hangout:
Download sakila db (
https://github.com/maxandersen/sakila-h2)
Run sakila h2
Create h2 connection for sakila
Create JPA Project (Hibernate (JPA 2.1), Disable Library Configuration), set sakila as a
connection, set discover annotated classes automatically, Finish
Convert project to maven project (Configure -> Convert to Maven project)
Add hibernate dependencies into pom.xml
{code}
<dependencies>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>4.3.0.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>4.3.0.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.1-api</artifactId>
<version>1.0.0.Final</version>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.3.161</version>
</dependency>
</dependencies>
{code}
JPA Tools -> Generate Entities from tables, set package (org.gen) for example, click
Finish
Open Actor.java
Check JPA Details view - it's empty
Open City.java
Click somewhere inside method
See that JPA Details view shows values
Click back to Actor, see JPA view shows values
JPA Details view doesn't work for entities in autodiscovery mode
when they are not explicitely listed
-----------------------------------------------------------------------------------------------------
Key: JBIDE-17940
URL:
https://issues.jboss.org/browse/JBIDE-17940
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: hibernate, upstream
Affects Versions: 4.2.0.Beta3
Environment: JBDS 8.0.0.Beta3, GNU/Linux 64
Reporter: Jiri Peterka
Assignee: Koen Aers
Priority: Critical
Fix For: 4.2.0.CR1
JPA Details view is not working for entities in autodiscovery mode. It only works when
entities are added into Managed Classes entities list. It's expected when JPA project
is configured with "Discover annotated classes automatically" it should without
manual listing entities in persistence.xml.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)