[
http://opensource.atlassian.com/projects/hibernate/browse/METAGEN-37?page...
]
Hardy Ferentschik commented on METAGEN-37:
------------------------------------------
Seems {{TypeUtils.extractClosestRealTypeAsString()}} is doing this wrong thing. Currently
the generated AttachmentGroup_ is:
{code}
package org.hibernate.jpamodelgen.test.typedmappedsuperclass;
import javax.persistence.metamodel.SetAttribute;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@StaticMetamodel(AttachmentGroup.class)
public abstract class AttachmentGroup_ {
public static volatile SingularAttribute<AttachmentGroup, Long> id;
public static volatile SetAttribute<AttachmentGroup,
Post<UserRoleType>> posts;
}
{code}
It really should be:
{code}
package org.hibernate.jpamodelgen.test.typedmappedsuperclass;
import javax.persistence.metamodel.SetAttribute;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@StaticMetamodel(AttachmentGroup.class)
public abstract class AttachmentGroup_ {
public static volatile SingularAttribute<AttachmentGroup, Long> id;
public static volatile SetAttribute<AttachmentGroup, AttachmentGroupPost>
posts;
}
{code}
Correct? WDYT?
MappedSuperclass with type parameters result in uncompilable
metamodels
-----------------------------------------------------------------------
Key: METAGEN-37
URL:
http://opensource.atlassian.com/projects/hibernate/browse/METAGEN-37
Project: Hibernate Metamodel Generator
Issue Type: Bug
Components: processor
Affects Versions: 1.0.0.Final
Reporter: Clint Popetz
Assignee: Hardy Ferentschik
Fix For: 1.1.0
Attachments: templatebug.tar.gz
The attached tgz illustrates the bug, run mvn compile. The metamodel for the base class
either needs a type param (and likewise the extends class on the sub-metamodel), or the
base class needs to be generated with Object as the type
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira