You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Harald Wellmann (JIRA)" <ji...@apache.org> on 2015/06/09 20:32:01 UTC

[jira] [Commented] (DELTASPIKE-700) Add #tableName() to AbstractEntityRepository

    [ https://issues.apache.org/jira/browse/DELTASPIKE-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14579363#comment-14579363 ] 

Harald Wellmann commented on DELTASPIKE-700:
--------------------------------------------

The table name can also be changed via orm.xml, and we probably don't want to parse that in DeltaSpike. Unfortunately, the mapping information does not seem to be available via the JPA API (javax.persistence.metamodel etc).

> Add #tableName() to AbstractEntityRepository
> --------------------------------------------
>
>                 Key: DELTASPIKE-700
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-700
>             Project: DeltaSpike
>          Issue Type: Improvement
>          Components: Data-Module
>            Reporter: Thomas Andraschko
>            Assignee: Daniel Cunha (soro)
>            Priority: Minor
>
> As table names can easiely be changed via @Table, it would be an typesafe usage to get the native table name for native queries
> e.g.
> @Table(name = "tbl_MyEntity")
> public class MyEntity...



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)