openmeetings-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebawag...@apache.org
Subject svn commit: r1442470 - in /openmeetings/trunk/singlewebapp/src: META-INF/ org/apache/openmeetings/persistence/beans/room/
Date Tue, 05 Feb 2013 04:49:19 GMT
Author: sebawagner
Date: Tue Feb  5 04:49:19 2013
New Revision: 1442470

URL: http://svn.apache.org/viewvc?rev=1442470&view=rev
Log:
OPENMEETINGS-460 Add Beans for storing the white-board in the database

Added:
    openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/persistence/beans/room/Whiteboard.java
    openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/persistence/beans/room/WhiteboardItem.java
Modified:
    openmeetings/trunk/singlewebapp/src/META-INF/db2_persistence.xml
    openmeetings/trunk/singlewebapp/src/META-INF/derby_persistence.xml
    openmeetings/trunk/singlewebapp/src/META-INF/mysql_persistence.xml
    openmeetings/trunk/singlewebapp/src/META-INF/oracle_persistence.xml
    openmeetings/trunk/singlewebapp/src/META-INF/postgres_persistence.xml

Modified: openmeetings/trunk/singlewebapp/src/META-INF/db2_persistence.xml
URL: http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/META-INF/db2_persistence.xml?rev=1442470&r1=1442469&r2=1442470&view=diff
==============================================================================
--- openmeetings/trunk/singlewebapp/src/META-INF/db2_persistence.xml (original)
+++ openmeetings/trunk/singlewebapp/src/META-INF/db2_persistence.xml Tue Feb  5 04:49:19 2013
@@ -57,6 +57,8 @@
 		<class>org.apache.openmeetings.persistence.beans.room.Room</class>
 		<class>org.apache.openmeetings.persistence.beans.room.RoomType</class>
 		<class>org.apache.openmeetings.persistence.beans.room.RoomOrganisation</class>
+		<class>org.apache.openmeetings.persistence.beans.room.Whiteboard</class>
+        <class>org.apache.openmeetings.persistence.beans.room.WhiteboardItem</class>
 		<class>org.apache.openmeetings.persistence.beans.user.Address</class>
         <class>org.apache.openmeetings.persistence.beans.user.State</class>
         <class>org.apache.openmeetings.persistence.beans.user.PrivateMessage</class>

Modified: openmeetings/trunk/singlewebapp/src/META-INF/derby_persistence.xml
URL: http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/META-INF/derby_persistence.xml?rev=1442470&r1=1442469&r2=1442470&view=diff
==============================================================================
--- openmeetings/trunk/singlewebapp/src/META-INF/derby_persistence.xml (original)
+++ openmeetings/trunk/singlewebapp/src/META-INF/derby_persistence.xml Tue Feb  5 04:49:19
2013
@@ -57,6 +57,8 @@
         <class>org.apache.openmeetings.persistence.beans.room.Room</class>
         <class>org.apache.openmeetings.persistence.beans.room.RoomType</class>
         <class>org.apache.openmeetings.persistence.beans.room.RoomOrganisation</class>
+        <class>org.apache.openmeetings.persistence.beans.room.Whiteboard</class>
+        <class>org.apache.openmeetings.persistence.beans.room.WhiteboardItem</class>
 		<class>org.apache.openmeetings.persistence.beans.user.Address</class>
         <class>org.apache.openmeetings.persistence.beans.user.State</class>
         <class>org.apache.openmeetings.persistence.beans.user.PrivateMessage</class>

Modified: openmeetings/trunk/singlewebapp/src/META-INF/mysql_persistence.xml
URL: http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/META-INF/mysql_persistence.xml?rev=1442470&r1=1442469&r2=1442470&view=diff
==============================================================================
--- openmeetings/trunk/singlewebapp/src/META-INF/mysql_persistence.xml (original)
+++ openmeetings/trunk/singlewebapp/src/META-INF/mysql_persistence.xml Tue Feb  5 04:49:19
2013
@@ -56,6 +56,8 @@
 		<class>org.apache.openmeetings.persistence.beans.room.RoomModerator</class>
         <class>org.apache.openmeetings.persistence.beans.room.Room</class>
         <class>org.apache.openmeetings.persistence.beans.room.RoomType</class>
+        <class>org.apache.openmeetings.persistence.beans.room.Whiteboard</class>
+        <class>org.apache.openmeetings.persistence.beans.room.WhiteboardItem</class>
         <class>org.apache.openmeetings.persistence.beans.room.RoomOrganisation</class>
 		<class>org.apache.openmeetings.persistence.beans.user.Address</class>
         <class>org.apache.openmeetings.persistence.beans.user.State</class>

Modified: openmeetings/trunk/singlewebapp/src/META-INF/oracle_persistence.xml
URL: http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/META-INF/oracle_persistence.xml?rev=1442470&r1=1442469&r2=1442470&view=diff
==============================================================================
--- openmeetings/trunk/singlewebapp/src/META-INF/oracle_persistence.xml (original)
+++ openmeetings/trunk/singlewebapp/src/META-INF/oracle_persistence.xml Tue Feb  5 04:49:19
2013
@@ -57,6 +57,8 @@
         <class>org.apache.openmeetings.persistence.beans.room.Room</class>
         <class>org.apache.openmeetings.persistence.beans.room.RoomType</class>
         <class>org.apache.openmeetings.persistence.beans.room.RoomOrganisation</class>
+        <class>org.apache.openmeetings.persistence.beans.room.Whiteboard</class>
+        <class>org.apache.openmeetings.persistence.beans.room.WhiteboardItem</class>
 		<class>org.apache.openmeetings.persistence.beans.user.Address</class>
         <class>org.apache.openmeetings.persistence.beans.user.State</class>
         <class>org.apache.openmeetings.persistence.beans.user.PrivateMessage</class>

Modified: openmeetings/trunk/singlewebapp/src/META-INF/postgres_persistence.xml
URL: http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/META-INF/postgres_persistence.xml?rev=1442470&r1=1442469&r2=1442470&view=diff
==============================================================================
--- openmeetings/trunk/singlewebapp/src/META-INF/postgres_persistence.xml (original)
+++ openmeetings/trunk/singlewebapp/src/META-INF/postgres_persistence.xml Tue Feb  5 04:49:19
2013
@@ -57,6 +57,8 @@
         <class>org.apache.openmeetings.persistence.beans.room.Room</class>
         <class>org.apache.openmeetings.persistence.beans.room.RoomType</class>
         <class>org.apache.openmeetings.persistence.beans.room.RoomOrganisation</class>
+        <class>org.apache.openmeetings.persistence.beans.room.Whiteboard</class>
+        <class>org.apache.openmeetings.persistence.beans.room.WhiteboardItem</class>
 		<class>org.apache.openmeetings.persistence.beans.user.Address</class>
         <class>org.apache.openmeetings.persistence.beans.user.State</class>
         <class>org.apache.openmeetings.persistence.beans.user.PrivateMessage</class>

Added: openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/persistence/beans/room/Whiteboard.java
URL: http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/persistence/beans/room/Whiteboard.java?rev=1442470&view=auto
==============================================================================
--- openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/persistence/beans/room/Whiteboard.java
(added)
+++ openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/persistence/beans/room/Whiteboard.java
Tue Feb  5 04:49:19 2013
@@ -0,0 +1,111 @@
+package org.apache.openmeetings.persistence.beans.room;
+
+import java.util.Calendar;
+import java.util.Collection;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.OneToMany;
+import javax.persistence.Table;
+
+import org.apache.openjpa.persistence.jdbc.ElementJoinColumn;
+
+@Entity
+@Table(name = "whiteboard")
+public class Whiteboard {
+
+	@Id
+	@GeneratedValue(strategy = GenerationType.IDENTITY)
+	@Column(name = "id")
+	private long id;
+
+	@Column(name = "room_id")
+	private Integer roomId = 0;
+
+	@Column(name = "x")
+	private Integer x = 0;
+
+	@Column(name = "y")
+	private Integer y = 0;
+
+	@Column(name = "zoom")
+	private Integer zoom = 100;
+
+	@Column(name = "full_fit")
+	private Boolean fullFit;
+
+	@Column(name = "created")
+	private Calendar created;
+
+	@OneToMany
+	@ElementJoinColumn(name = "whiteboarditem_id", referencedColumnName = "id")
+	private Collection<WhiteboardItem> roomItems;
+
+	public long getId() {
+		return id;
+	}
+
+	public void setId(long id) {
+		this.id = id;
+	}
+
+	public Integer getX() {
+		return x;
+	}
+
+	public void setX(Integer x) {
+		this.x = x;
+	}
+
+	public Integer getY() {
+		return y;
+	}
+
+	public void setY(Integer y) {
+		this.y = y;
+	}
+
+	public Integer getZoom() {
+		return zoom;
+	}
+
+	public void setZoom(Integer zoom) {
+		this.zoom = zoom;
+	}
+
+	public Boolean getFullFit() {
+		return fullFit;
+	}
+
+	public void setFullFit(Boolean fullFit) {
+		this.fullFit = fullFit;
+	}
+
+	public Calendar getCreated() {
+		return created;
+	}
+
+	public void setCreated(Calendar created) {
+		this.created = created;
+	}
+
+	public Integer getRoomId() {
+		return roomId;
+	}
+
+	public void setRoomId(Integer roomId) {
+		this.roomId = roomId;
+	}
+
+	public Collection<WhiteboardItem> getRoomItems() {
+		return roomItems;
+	}
+
+	public void setRoomItems(Collection<WhiteboardItem> roomItems) {
+		this.roomItems = roomItems;
+	}
+
+}

Added: openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/persistence/beans/room/WhiteboardItem.java
URL: http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/persistence/beans/room/WhiteboardItem.java?rev=1442470&view=auto
==============================================================================
--- openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/persistence/beans/room/WhiteboardItem.java
(added)
+++ openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/persistence/beans/room/WhiteboardItem.java
Tue Feb  5 04:49:19 2013
@@ -0,0 +1,25 @@
+package org.apache.openmeetings.persistence.beans.room;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.Table;
+
+@Entity
+@Table(name = "whiteboard_item")
+public class WhiteboardItem {
+	
+	@Id
+	@GeneratedValue(strategy = GenerationType.IDENTITY)
+	@Column(name = "id")
+	private long id;
+	
+	@Column(name = "keyx")
+	private String key;
+	
+	@Column(name = "value")
+	private String value;
+
+}



Mime
View raw message