Created
June 30, 2011 13:16
-
-
Save stliu/1056208 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity | |
//@Access( AccessType.FIELD ) | |
class User { | |
private String name; | |
@EmbeddedId | |
private Address address; | |
private int version; | |
@Version | |
public int getVersion(){} | |
} | |
@Embeddable | |
class Address { | |
String street; | |
String city; | |
String postCode; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment