[teiid-issues] [JBoss JIRA] (TEIID-5350) JPA translator vs de-typed entities

Harold Campbell (JIRA) issues at jboss.org
Wed May 23 19:01:00 EDT 2018


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

Harold Campbell updated TEIID-5350:
-----------------------------------
    Attachment: 0001-TEIID-5350-JPAMetadataProcessor-Ignore-entities-mana.patch


> JPA translator vs de-typed entities
> -----------------------------------
>
>                 Key: TEIID-5350
>                 URL: https://issues.jboss.org/browse/TEIID-5350
>             Project: Teiid
>          Issue Type: Feature Request
>            Reporter: Harold Campbell
>            Assignee: Steven Hawkins
>         Attachments: 0001-TEIID-5350-JPAMetadataProcessor-Ignore-entities-mana.patch
>
>
> See here for some background: https://hibernate.atlassian.net/browse/HHH-10968
> When the JPA translator encounters a de-typed entity, such as those synthesized by Hibernate Envers, a NullPointerException is thrown. This is because the entity getJavaType() returns null, and calling getName() on that goes boom.
> The simplest solution I can think of is to wrap the Metamodel in another one which filters out any entities/managed types which return null for getJavaType(), but if something more useful could be done with these things that would be nice.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the teiid-issues mailing list