Commit cc9eb408 authored by Matija Obreza's avatar Matija Obreza
Browse files

Specified tableName and column names for GeoRegion entity

parent 9e9d39c6
......@@ -6,6 +6,7 @@ import javax.persistence.*;
import java.util.List;
@Entity
@Table(name="georegion")
public class GeoRegion extends BusinessModel {
private static final long serialVersionUID = -1L;
......@@ -23,7 +24,7 @@ public class GeoRegion extends BusinessModel {
private GeoRegion parentGeoRegion;
@OneToMany(fetch = FetchType.LAZY)
@JoinTable(name = "georegioncountry", joinColumns = @JoinColumn(name = "georegionId"), inverseJoinColumns = @JoinColumn(name = "coutryId"))
@JoinTable(name = "georegioncountry", joinColumns = @JoinColumn(name = "georegionId"), inverseJoinColumns = @JoinColumn(name = "countryId"))
private List<Country> members;
public String getIsoCode() {
......
package org.genesys2.server.model.impl;
public class GeoRegionCountry{
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment