There is 2 entity  

Product(product\_id(PK),product\_name..)  

Store(product\_id(PK,FK),product\_quantity,...) 

I need @OneToOne, so i do this

```
public class Product{
  @Id
  @Column(name="PRODUCT_ID")
  @OneToOne(mappedBy="product")
  private int product_id;
  ....
}

public class Store{
  @Id
  @OneToOne(cascade = CascadeType.ALL)
  @JoinColumn(name = "PRODUCT_ID")
  private Product product;
}

```

Compilier says @Column(s) not allowed on a @OneToOne property: ......shopdb.entity.Product.product\_id 

What is the problem?