[hibernate-issues] [Hibernate-JIRA] Created: (HHH-7145) There is a typo/syntax error in the first example under 2.2.2.3. Embedded objects (aka components)

Tracy Logan (JIRA) noreply at atlassian.com
Sat Mar 3 16:31:48 EST 2012


There is a typo/syntax error in the first example under 2.2.2.3. Embedded objects (aka components)
--------------------------------------------------------------------------------------------------

                 Key: HHH-7145
                 URL: https://hibernate.onjira.com/browse/HHH-7145
             Project: Hibernate ORM
          Issue Type: Improvement
          Components: documentation
         Environment: 3.1 beta 9
            Reporter: Tracy Logan
            Priority: Trivial


The example given under section 2.2.2.3. Embedded objects (aka components) contains the following:
{code:java}
    @AttributeOverrides( {
            @AttributeOverride(name="iso2", column = @Column(name="bornIso2") ),
            @AttributeOverride(name="name", column = @Column(name="bornCountryName") )
    } )
{code}

However, @AttributeOverrides actually takes an array, so the correct syntax changes the curly braces to square brackets:
{code:java}
    @AttributeOverrides( [
            @AttributeOverride(name="iso2", column = @Column(name="bornIso2") ),
            @AttributeOverride(name="name", column = @Column(name="bornCountryName") )
    ] )
{code}

This is of course a trivial (though helpful!) fix; I plan to use it to gain experience contributing, and will edit this ticket to add a patch (or pull request?) shortly.

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

        


More information about the hibernate-issues mailing list