git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
provided interface now sets its own unique id.
[utils]
/
trunk
/
mythtv
/
monitor
/
src
/
main
/
java
/
org
/
wamblee
/
mythtv
/
Channel.java
diff --git
a/trunk/mythtv/monitor/src/main/java/org/wamblee/mythtv/Channel.java
b/trunk/mythtv/monitor/src/main/java/org/wamblee/mythtv/Channel.java
index e5ef7047039fddf7e312aa2700b32117f8d1d60c..ca16f51ab392504d50a5df5aea0c764db76133e4 100644
(file)
--- a/
trunk/mythtv/monitor/src/main/java/org/wamblee/mythtv/Channel.java
+++ b/
trunk/mythtv/monitor/src/main/java/org/wamblee/mythtv/Channel.java
@@
-23,16
+23,15
@@
import javax.persistence.Table;
/**
*
/**
*
+ *
+ * @author Erik Brakkee
*/
@Entity
@Table(name="channel")
public class Channel {
*/
@Entity
@Table(name="channel")
public class Channel {
- @Id
- @Column(name="chanid")
private int _id;
private int _id;
- @Column(name="name")
private String _name;
protected Channel() {
private String _name;
protected Channel() {
@@
-42,17
+41,34
@@
public class Channel {
/**
* @return the id
*/
/**
* @return the id
*/
+ @Id
+ @Column(name="chanid")
public int getId() {
return _id;
}
public int getId() {
return _id;
}
+
+ /**
+ * @param aId the id to set
+ */
+ public void setId(int aId) {
+ _id = aId;
+ }
/**
* @return the name
*/
/**
* @return the name
*/
+ @Column(name="name")
public String getName() {
return _name;
}
public String getName() {
return _name;
}
+ /**
+ * @param aName the name to set
+ */
+ public void setName(String aName) {
+ _name = aName;
+ }
+
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/