mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-07 19:58:16 +00:00
fix annotations
git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@6945 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
d2308a4b7b
commit
4a6170fb35
@ -3051,7 +3051,7 @@ public class Cat {
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 id="mapping-annotations">
|
||||
<sect2 id="mapping-annotations" revision="2">
|
||||
<title>Using JDK 5.0 Annotations</title>
|
||||
|
||||
<para>
|
||||
@ -3082,20 +3082,19 @@ public class Customer implements Serializable {
|
||||
@Transient
|
||||
Integer age;
|
||||
|
||||
@Dependent
|
||||
@Embedded
|
||||
private Address homeAddress;
|
||||
|
||||
@OneToMany(cascade=CascadeType.ALL,
|
||||
targetEntity="Order")
|
||||
@OneToMany(cascade=CascadeType.ALL)
|
||||
@JoinColumn(name="CUSTOMER_ID")
|
||||
Set orders;
|
||||
Set<Order> orders;
|
||||
|
||||
// Getter/setter and business methods
|
||||
}]]></programlisting>
|
||||
|
||||
<para>
|
||||
Note that support for JDK 5.0 Annotations (and JSR-220) is still work in progress and
|
||||
not completed.
|
||||
not completed. Please refer to the Hibernate Annotations module for more details.
|
||||
</para>
|
||||
|
||||
</sect2>
|
||||
|
Loading…
x
Reference in New Issue
Block a user