[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-9536) JPA: take into account hibernate @Columns(*) on attribute column validation

Dmitry Geraskov (JIRA) jira-events at lists.jboss.org
Mon Aug 29 09:48:26 EDT 2011


    [ https://issues.jboss.org/browse/JBIDE-9536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12624736#comment-12624736 ] 

Dmitry Geraskov commented on JBIDE-9536:
----------------------------------------

A singular Column object permeates through all the Dali internal model and that is why this can't be done in 3.3.0.M3, but we could try to cnage validation and do not validate if the column exists if there is @Columns annotation present.

> JPA: take into account hibernate @Columns(*) on attribute column validation
> ---------------------------------------------------------------------------
>
>                 Key: JBIDE-9536
>                 URL: https://issues.jboss.org/browse/JBIDE-9536
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: Hibernate
>    Affects Versions: 3.3.0.M2
>            Reporter: Dmitry Geraskov
>            Assignee: Dmitry Geraskov
>              Labels: new_and_noteworthy
>             Fix For: 3.3.0.M3
>
>
> Test Case:
> 1. Create a database table x with column columnOne
> 2. Create enity for the table with attribute columnTwo
> Connect dtp connection and check error near the field appeared (Column 'columnTwo' cannot be resolved on table 'x')
> 3. Add @javax.persistence.Column(name="columnOne")
> OBSERVE: error should disappear
> 4. change annotation to @org.hibernate.Columns(columns = {@Column(name="columnOne")})
> FAILURE: error appear again

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list