title: Why Foreign key not inserted in hibernate
body: <p>i have two entities. Employee and address. relation between this entities is @OneToOne. when i want to insert into db the foreign key not be insert into table. 
  my entity are: </p>
  
  <pre><code>  @Entity
    @Table(name="Address")
    public class Address{
  
    @Id
    @Column(name="Id")
    private int Id;
  
   @OneToOne(fetch=FetchType.LAZY)
   @JoinColumn(name="emp_id", 
          insertable=true, updatable=false, 
          nullable=true)
   private Employee  employee ;  
  </code></pre>
  
  <p>and employee entity </p>
  
  <pre><code> @Entity
   @Table(name="EMPLOYEE")
   public class Employee{
  
  @Id 
  @GeneratedValue
  @Column(name="emp_id")
  private int emp_id;
  
  
  @OneToOne(fetch =FetchType.EAGER, cascade = CascadeType.ALL)
  @JoinColumn(name="emp_id", 
         insertable=true, updatable=false, 
         nullable=true)
  private Address address; 
  </code></pre>
  
  <p>and code for add employee </p>
  
  <pre><code>Employee employee = new Employee("john" , ... );
  Address address = new Address("USA" , ...);
  employee.setAddress(address);
  address.setEmployee(employee);
  employeeService.addEmployee(employee);
  </code></pre>
  
  <p>Should foreign keys in database tables is specified ?</p>