diff options
author | Ralph Atallah <ralphat@users.sourceforge.net> | 2008-11-17 18:34:22 +0000 |
---|---|---|
committer | Ralph Atallah <ralphat@users.sourceforge.net> | 2008-11-17 18:34:22 +0000 |
commit | 5768f0fa6a9f6a13183336e2587ca99e7a43936b (patch) | |
tree | 73022494d9b6db118b508302935b2f13760ba4e1 /orkbasej/java/net/sf/oreka/persistent/RecSession.java | |
parent | 8278fd69bdca293e4e8a094dcdb7d985c97f3b7d (diff) |
IMPORTANT NOTE: With this commit, OrkWeb and OrkTrack are NO LONGER COMPATIBLE WITH PREVIOUS VERSIONS!
- Modified classes and underlying SQL table names by prefixing them with "ork". This allows oreka to run in any database without risk of collision with existing tables.
- Now using MySQLInnoDBDialect to access DB instead of MySQLMyISAMDialect.
- Fixed Browse page filtering to allow open-ended start and end dates
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@570 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasej/java/net/sf/oreka/persistent/RecSession.java')
-rw-r--r-- | orkbasej/java/net/sf/oreka/persistent/RecSession.java | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/orkbasej/java/net/sf/oreka/persistent/RecSession.java b/orkbasej/java/net/sf/oreka/persistent/RecSession.java deleted file mode 100644 index eff8417..0000000 --- a/orkbasej/java/net/sf/oreka/persistent/RecSession.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Oreka -- A media capture and retrieval platform - * - * Copyright (C) 2005, orecx LLC - * - * http://www.orecx.com - * - * This program is free software, distributed under the terms of - * the GNU General Public License. - * Please refer to http://www.gnu.org/copyleft/gpl.html - * - */ - -package net.sf.oreka.persistent; - -import java.io.Serializable; -import java.util.Date; - -import javax.persistence.Entity; -import javax.persistence.GeneratorType; -import javax.persistence.Id; -import javax.persistence.Table; -import javax.persistence.Transient; - -/** - * @hibernate.class - */ -@Entity -@Table(name = "recsession") -public class RecSession implements Serializable { - private int id; - private Date timestamp = new Date(0); - private long duration; - - /** - * @hibernate.property - * not-null="true" - * @return - */ - public long getDuration() { - return duration; - } - - public void setDuration(long duration) { - this.duration = duration; - } - - /** - * @hibernate.id - * generator-class="native" - */ - @Id(generate=GeneratorType.AUTO) - public int getId() { - return id; - } - - - public void setId(int id) { - this.id = id; - } - - /** - * @hibernate.property - * @return - */ - public Date getTimestamp() { - return timestamp; - } - - public void setTimestamp(Date timestamp) { - this.timestamp = timestamp; - } - - @Transient - public long getStopTime() { - return timestamp.getTime() + duration; - } - - public void setStopTime(long stopTime) { - duration = stopTime - timestamp.getTime(); - } -} |