Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » one to one mapping problems
one to one mapping problems [message #605083] Mon, 30 July 2007 22:17
Eclipse User
Originally posted by:

in dali tutorial 1.0,there is a problem in onetoone so:

@JoinColumn(name="ADDR_ID", referencedColumnName = "ADDRESS_ID", table =
"ADDRE", insertable = false, updatable = false)
private String address;

why JPA report "table 'ADDRE' for join column 'ADDR_ID' can not be
resolved "

package com.zsf.test;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.Basic;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.AUTO;

@Table(name="ADDRE", schema = "ZSF")
public class Address {
@Column(name="ADDRESS_ID", table = "ADDRE", insertable = false, updatable
= false)
private long id;
@Column(name="COUNTRY", table = "ADDRE")
private String country;
@Column(name="CITY", table = "ADDRE")
private String city;
@Column(name="PROVINCE", table = "ADDRE")
private String stateOrProvince;
@Column(name="STREET", table = "ADDRE")
private String street;
@Column(name="P_CODE", table = "ADDRE")
private String postalCode;

public long getId() {
return id;

public void setId(long id) { = id;

public String getCountry() {
return country;

public void setCountry(String country) { = country;

public String getCity() {
return city;

public void setCity(String city) { = city;

public String getStateOrProvince() {
return stateOrProvince;

public void setStateOrProvince(String stateOrProvince) {
this.stateOrProvince = stateOrProvince;

public String getStreet() {
return street;

public void setStreet(String street) {
this.street = street;

public String getPostalCode() {
return postalCode;

public void setPostalCode(String postalCode) {
this.postalCode = postalCode;

Previous Topic:Problem with Generate DDL
Next Topic:NPE when launching JPA Project wizard
Goto Forum:

Current Time: Mon Jul 28 04:37:32 EDT 2014

Powered by FUDForum. Page generated in 0.03015 seconds