[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-7145) There is a typo/syntax error in the first example under 2.2.2.3. Embedded objects (aka components)
Steve Ebersole (JIRA)
noreply at atlassian.com
Mon Mar 26 23:52:48 EDT 2012
[ https://hibernate.onjira.com/browse/HHH-7145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Ebersole updated HHH-7145:
--------------------------------
Pull Requests: https://github.com/hibernate/hibernate-orm/pull/284
> 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