[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-8708) JPA: Naming Strategy validator is broken

Dmitry Geraskov (JIRA) jira-events at lists.jboss.org
Thu Jun 16 06:34:23 EDT 2011


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

Dmitry Geraskov commented on JBIDE-8708:
----------------------------------------

Test case:
0. Create new connection provider to database
1. Create new jpa project wti simple entity with 2 properties "id" and "name".
2. Create custom nameing strategy (subclass org.hibernate.cfg.DefaultNamingStrategy)
3. Override for example propertyToColumnName method, so it returns "upd_"+propertyName
4. Set the NamingStrategy in Console Configuration (second tab)
5. Create table for the entity in database with "upd_id" and "upd_name" columns
6. Connect connection provider if not connected and rebuilr or run revalidation of the project
Validator should find columns "upd_id" and "upd_name" for properties named "id" and "name".

> JPA: Naming Strategy validator is broken
> ----------------------------------------
>
>                 Key: JBIDE-8708
>                 URL: https://issues.jboss.org/browse/JBIDE-8708
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Hibernate
>    Affects Versions: 3.2.0.Final
>            Reporter: Dmitry Geraskov
>            Assignee: Dmitry Geraskov
>             Fix For: 3.3.0.M1
>
>


--
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