Project

General

Profile

« Previous | Next » 

Revision ef1b5da2

Added by Andreas Müller almost 8 years ago

Adapt table and column names to hibernate 5 naming strategy #5369

... and some other changes to table/attribute names

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/location/NamedArea.java
20 20

  
21 21
import javax.persistence.Entity;
22 22
import javax.persistence.FetchType;
23
import javax.persistence.JoinColumn;
24 23
import javax.persistence.JoinTable;
25 24
import javax.persistence.ManyToMany;
26 25
import javax.persistence.ManyToOne;
......
173 172
    private Point pointApproximation;
174 173

  
175 174
    @ManyToMany(fetch = FetchType.LAZY)
176
    //preliminary  #5369
177
    @JoinTable(
178
         name="DefinedTermBase_Country",
179
         joinColumns = @JoinColumn( name="DefinedTermBase_id")
180
    )
175
    @JoinTable(name="DefinedTermBase_Country")
181 176
    private final Set<Country> countries = new HashSet<Country>();
182 177

  
183 178
    @ManyToOne(fetch = FetchType.LAZY)

Also available in: Unified diff