From 081040834e38e52a47cdf72281a2f3dcf30a1754 Mon Sep 17 00:00:00 2001 From: lado Date: Tue, 12 Feb 2013 22:23:30 +0100 Subject: @DatabaseTable --- .../src/de/bjusystems/vdrmanager/data/Channel.java | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'vdrmanager/src/de/bjusystems') diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/data/Channel.java b/vdrmanager/src/de/bjusystems/vdrmanager/data/Channel.java index 02e9cc7..1a75469 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/data/Channel.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/data/Channel.java @@ -1,19 +1,33 @@ package de.bjusystems.vdrmanager.data; -import de.bjusystems.vdrmanager.StringUtils; -import de.bjusystems.vdrmanager.app.C; - import android.os.Parcel; import android.os.Parcelable; +import com.j256.ormlite.field.DatabaseField; +import com.j256.ormlite.table.DatabaseTable; + +import de.bjusystems.vdrmanager.StringUtils; +import de.bjusystems.vdrmanager.app.C; + +@DatabaseTable public class Channel implements Parcelable { + + @DatabaseField(id=true) String id; private int number; + + @DatabaseField private String name; + + @DatabaseField(index=true) private String provider; + + @DatabaseField private String rawAudio; + + @DatabaseField(index = true) private String group; public String getGroup() { -- cgit v1.2.3