Skip to content

Commit 82ad3bd

Browse files
author
Krzysztof Majewski
committed
BAEL-2097 add Address entity
1 parent b27d20a commit 82ad3bd

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

  • hibernate5/src/main/java/com/baeldung/hibernate/joincolumn
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.baeldung.hibernate.joincolumn;
2+
3+
import javax.persistence.Column;
4+
import javax.persistence.Entity;
5+
import javax.persistence.GeneratedValue;
6+
import javax.persistence.GenerationType;
7+
import javax.persistence.Id;
8+
9+
@Entity
10+
public class Address {
11+
12+
@Id
13+
@GeneratedValue(strategy = GenerationType.AUTO)
14+
private Long id;
15+
16+
@Column(name = "ZIP")
17+
private String zipCode;
18+
19+
}

0 commit comments

Comments
 (0)