# HG changeset patch # User Raimund Renkert # Date 1453905237 -3600 # Node ID 2b9fd00bca562be4b6f5b814e3b201bceb3db1ae # Parent d0a591b3eadec33a0342ff695bb86907e3bb42e2 Fixed code style. diff -r d0a591b3eade -r 2b9fd00bca56 src/main/java/de/intevation/lada/model/stamm/LadaUser.java --- a/src/main/java/de/intevation/lada/model/stamm/LadaUser.java Wed Jan 27 15:32:49 2016 +0100 +++ b/src/main/java/de/intevation/lada/model/stamm/LadaUser.java Wed Jan 27 15:33:57 2016 +0100 @@ -1,9 +1,20 @@ +/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz + * Software engineering by Intevation GmbH + * + * This file is Free Software under the GNU GPL (v>=3) + * and comes with ABSOLUTELY NO WARRANTY! Check out + * the documentation coming with IMIS-Labordaten-Application for details. + */ package de.intevation.lada.model.stamm; import java.io.Serializable; -import javax.persistence.*; import java.util.List; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.OneToMany; +import javax.persistence.Table; + /** * The persistent class for the lada_user database table. @@ -11,84 +22,83 @@ */ @Entity @Table(name="lada_user") -@NamedQuery(name="LadaUser.findAll", query="SELECT l FROM LadaUser l") public class LadaUser implements Serializable { - private static final long serialVersionUID = 1L; - - @Id - private Integer id; - - private String name; - - //bi-directional many-to-one association to Favorite - @OneToMany(mappedBy="ladaUser") - private List favorites; - - //bi-directional many-to-one association to FilterValue - @OneToMany(mappedBy="ladaUser") - private List filterValues; - - public LadaUser() { - } - - public Integer getId() { - return this.id; - } - - public void setId(Integer id) { - this.id = id; - } - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - } - - public List getFavorites() { - return this.favorites; - } + private static final long serialVersionUID = 1L; - public void setFavorites(List favorites) { - this.favorites = favorites; - } - - public Favorite addFavorite(Favorite favorite) { - getFavorites().add(favorite); - favorite.setLadaUser(this); - - return favorite; - } - - public Favorite removeFavorite(Favorite favorite) { - getFavorites().remove(favorite); - favorite.setLadaUser(null); - - return favorite; - } + @Id + private Integer id; - public List getFilterValues() { - return this.filterValues; - } - - public void setFilterValues(List filterValues) { - this.filterValues = filterValues; - } + private String name; - public FilterValue addFilterValue(FilterValue filterValue) { - getFilterValues().add(filterValue); - filterValue.setLadaUser(this); - - return filterValue; - } + //bi-directional many-to-one association to Favorite + @OneToMany(mappedBy="ladaUser") + private List favorites; - public FilterValue removeFilterValue(FilterValue filterValue) { - getFilterValues().remove(filterValue); - filterValue.setLadaUser(null); + //bi-directional many-to-one association to FilterValue + @OneToMany(mappedBy="ladaUser") + private List filterValues; - return filterValue; - } + public LadaUser() { + } -} \ No newline at end of file + public Integer getId() { + return this.id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public List getFavorites() { + return this.favorites; + } + + public void setFavorites(List favorites) { + this.favorites = favorites; + } + + public Favorite addFavorite(Favorite favorite) { + getFavorites().add(favorite); + favorite.setLadaUser(this); + + return favorite; + } + + public Favorite removeFavorite(Favorite favorite) { + getFavorites().remove(favorite); + favorite.setLadaUser(null); + + return favorite; + } + + public List getFilterValues() { + return this.filterValues; + } + + public void setFilterValues(List filterValues) { + this.filterValues = filterValues; + } + + public FilterValue addFilterValue(FilterValue filterValue) { + getFilterValues().add(filterValue); + filterValue.setLadaUser(this); + + return filterValue; + } + + public FilterValue removeFilterValue(FilterValue filterValue) { + getFilterValues().remove(filterValue); + filterValue.setLadaUser(null); + + return filterValue; + } + +}