Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/model/Gauge.java @ 9726:0a5239a1e46e 3.2.x
Upgrade to Log4j 2
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 02 Mar 2022 10:26:50 +0100 |
parents | 5e38e2924c07 |
children |
comparison
equal
deleted
inserted
replaced
9725:da398790fa32 | 9726:0a5239a1e46e |
---|---|
26 import javax.persistence.OneToMany; | 26 import javax.persistence.OneToMany; |
27 | 27 |
28 import org.hibernate.Session; | 28 import org.hibernate.Session; |
29 import org.hibernate.Query; | 29 import org.hibernate.Query; |
30 | 30 |
31 import org.apache.log4j.Logger; | 31 import org.apache.logging.log4j.Logger; |
32 import org.apache.logging.log4j.LogManager; | |
32 | 33 |
33 import org.dive4elements.river.backend.SessionHolder; | 34 import org.dive4elements.river.backend.SessionHolder; |
34 | 35 |
35 /** Database-mapped Gauge with all info about it. */ | 36 /** Database-mapped Gauge with all info about it. */ |
36 @Entity | 37 @Entity |
37 @Table(name = "gauges") | 38 @Table(name = "gauges") |
38 public class Gauge | 39 public class Gauge |
39 implements Serializable, Comparable<Gauge> | 40 implements Serializable, Comparable<Gauge> |
40 { | 41 { |
41 private static final Logger log = Logger.getLogger(Gauge.class); | 42 private static final Logger log = LogManager.getLogger(Gauge.class); |
42 | 43 |
43 public static final int MASTER_DISCHARGE_TABLE = 0; | 44 public static final int MASTER_DISCHARGE_TABLE = 0; |
44 | 45 |
45 private Integer id; | 46 private Integer id; |
46 private String name; | 47 private String name; |