[hibernate-issues] [Hibernate-JIRA] Created: (HHH-4004) Allow embeddable classes to have prefix

Atlassian Support (JIRA) noreply at atlassian.com
Wed Jul 1 13:21:15 EDT 2009


Allow embeddable classes to have prefix
---------------------------------------

                 Key: HHH-4004
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4004
             Project: Hibernate Core
          Issue Type: New Feature
            Reporter: Ricardo Mayerhofer


Some times when using embedded classes, some of these classes have attributes with the same name. E.g.:

Customer{
   Address address;
   Document document;
}

Address{
    String number;
}

Document{
   String number;
}

This raises the following error: column: number (should be mapped with insert="false" update="false"). If we could specify a prefix for the embeddable class, the field in database would be much clear (address_number instead of number), and would solve this kind of issue.

Thanks for considering. 

-- 
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list