Index: lams_tool_nb/build.properties
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_nb/build.properties,v
diff -u -r1.6 -r1.7
--- lams_tool_nb/build.properties 10 Aug 2005 06:47:54 -0000 1.6
+++ lams_tool_nb/build.properties 23 Aug 2005 05:00:12 -0000 1.7
@@ -18,68 +18,16 @@
# http://www.gnu.org/licenses/gpl.txt
# project-wide properties
-project=LAMS
-product=lams-tool-lanb11
-project_version=1.1
-name=nb
signature=lanb11
-# xdoclet properties
-xdoclet.version=1.2.3
-
+package=org/lamsfoundation/lams/tool/noticeboard
+package.name=org.lamsfoundation.lams.tool.noticeboard
+
# path properties
-sharedlib=../lams_build/lib
-deploy.tool.dir=../lams_build/deploy-tool
j2eelibs=C:/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.4/data/libraryset/1.4
-sql=${basedir}/db/sql
-src=${basedir}/src
-src.java=${basedir}/src/java
-src.test=${basedir}/test/java
-conf=${basedir}/conf
-
-jboss=${conf}/jboss
-
-hibernate=${conf}/hibernate
-hibernate.mappings=${hibernate}/mapping
-
-web=${basedir}/web
-webinf=${web}/WEB-INF
-
-xdoclet=${conf}/xdoclet
-
# /var/jboss
jboss.home=D:/jboss-3.2.6/
-jboss.deploy=${jboss.home}/server/default/deploy/lams.ear
-build=${basedir}/build
-build.classes.java=${build}/classes/java
-build.classes.test=${build}/classes/test
-build.lib=${build}/lib
-build.report=${build}/report
-build.deploy=${build}/deploy
-package=org/lamsfoundation/lams/tool/noticeboard
-package.name=org.lamsfoundation.lams.tool.noticeboard
-# the URL used to access LAMS
-toolContext=/lams/tool/lanb11
-
-
-# database related properties
-database.driver.file=${sharedlib}/mysql/mysql-connector-java-3.1.7-bin.jar
-database.driver.classpath=${database.driver.file}
-database.driver=com.mysql.jdbc.Driver
-database.url=jdbc:mysql://localhost/lams?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&autoReconnect=true
-database.userid=lams
-database.password=lamsdemo
-database.schema=
-database.catalog=
-
-# middlegen properties
-middlegen=${conf}/middlegen
-middlegen.gui=true
-
-# application properties
-sessiontimeout=120
-
Index: lams_tool_nb/build.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_nb/build.xml,v
diff -u -r1.9 -r1.10
--- lams_tool_nb/build.xml 10 Aug 2005 06:47:54 -0000 1.9
+++ lams_tool_nb/build.xml 23 Aug 2005 05:00:12 -0000 1.10
@@ -12,6 +12,7 @@
+
-
-
+
-
+
-
+
-
+
@@ -114,32 +115,32 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -149,10 +150,10 @@
-
+
-
+
@@ -163,8 +164,8 @@
-
+ webxml="${conf.webinf.dir}/web.xml" manifest="${conf.dir}/war/META-INF/MANIFEST.MF">
+
@@ -177,7 +178,7 @@
-
+
@@ -223,20 +224,20 @@
appname="${name}"
prefsdir="${middlegen}"
gui="${middlegen.gui}"
- databaseurl="${database.url}"
+ databaseurl="${db.url}"
initialContextFactory="${java.naming.factory.initial}"
providerURL="${java.naming.provider.url}"
datasourceJNDIName="${datasource.jndi.name}"
- driver="${database.driver}"
- username="${database.userid}"
- password="${database.password}"
- schema="${database.schema}"
+ driver="${db.driver}"
+ username="${db.username}"
+ password="${db.password}"
+ schema="${db.schema}"
catalog="lams"
includeViews="false"
>
-
+
-
-
+
+
@@ -298,15 +299,15 @@
-
+
-
+
-
+
@@ -327,7 +328,7 @@
-
+
@@ -356,17 +357,17 @@
+
+
+
+
+
+
+
+ @hibernate.class
+ table="tl_lanb11_attachment"
+
+
+
+
+ @hibernate.id
+ generator-class="native"
+ type="java.lang.Long"
+ column="attachment_id"
+
+
+
+
+
+
+
+
+ @hibernate.property
+ column="filename"
+ length="255"
+ not-null="true"
+
+
+
+
+ @hibernate.property
+ column="uuid"
+ not-null="true"
+ length="20"
+
+
+
+
+ @hibernate.property
+ column="version_id"
+ length="20"
+
+
+
+
+ @hibernate.property
+ column="online_file"
+ length="1"
+ not-null="true"
+
+
+
+
+
+
+
+
+ @hibernate.many-to-one
+ not-null="true"
+ @hibernate.column name="nb_content_uid"
+
+
+
+
+
+
Index: lams_tool_nb/conf/hibernate/mappings/org/lamsfoundation/lams/tool/noticeboard/NoticeboardContent.hbm.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_nb/conf/hibernate/mappings/org/lamsfoundation/lams/tool/noticeboard/Attic/NoticeboardContent.hbm.xml,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_tool_nb/conf/hibernate/mappings/org/lamsfoundation/lams/tool/noticeboard/NoticeboardContent.hbm.xml 23 Aug 2005 05:00:13 -0000 1.1
@@ -0,0 +1,236 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="tl_lanb11_content"
+
+
+
+
+ @hibernate.id
+ generator-class="native"
+ type="java.lang.Long"
+ column="uid"
+ unsaved-value="0"
+
+
+
+
+
+
+
+
+ @hibernate.property
+ column="nb_content_id"
+ length="20"
+ not-null="true"
+
+
+
+
+ @hibernate.property
+ column="title"
+ length="255"
+
+
+
+
+ @hibernate.property
+ column="content"
+ length="65535"
+
+
+
+
+ @hibernate.property
+ column="online_instructions"
+ length="65535"
+
+
+
+
+ @hibernate.property
+ column="offline_instructions"
+ length="65535"
+
+
+
+
+ @hibernate.property
+ column="define_later"
+ length="1"
+
+
+
+
+ @hibernate.property
+ column="force_offline"
+ length="1"
+
+
+
+
+
+ @hibernate.property
+ column="contentInUse"
+ length="1"
+
+
+
+
+
+ @hibernate.property
+ column="creator_user_id"
+ length="20"
+
+
+
+
+ @hibernate.property
+ column="date_created"
+ length="19"
+
+
+
+
+ @hibernate.property
+ column="date_updated"
+ length="19"
+
+
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="all-delete-orphan"
+
+ @hibernate.collection-key
+ column="nb_content_uid"
+
+ @hibernate.collection-one-to-many
+ class="org.lamsfoundation.lams.tool.noticeboard.NoticeboardSession"
+
+
+
+
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="all-delete-orphan"
+
+ @hibernate.collection-key
+ column="nb_content_uid"
+
+ @hibernate.collection-one-to-many
+ class="org.lamsfoundation.lams.tool.noticeboard.NoticeboardAttachment"
+
+
+
+
+
+
+
+
+
+
Index: lams_tool_nb/conf/hibernate/mappings/org/lamsfoundation/lams/tool/noticeboard/NoticeboardSession.hbm.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_nb/conf/hibernate/mappings/org/lamsfoundation/lams/tool/noticeboard/Attic/NoticeboardSession.hbm.xml,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_tool_nb/conf/hibernate/mappings/org/lamsfoundation/lams/tool/noticeboard/NoticeboardSession.hbm.xml 23 Aug 2005 05:00:13 -0000 1.1
@@ -0,0 +1,142 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="tl_lanb11_session"
+
+
+
+
+ @hibernate.id
+ generator-class="native"
+ type="java.lang.Long"
+ column="uid"
+ unsaved-value="0"
+
+
+
+
+
+
+
+
+ @hibernate.property
+ column="nb_session_id"
+ length="20"
+ not-null="true"
+
+
+
+
+ @hibernate.property
+ column="session_start_date"
+ length="19"
+
+
+
+
+ @hibernate.property
+ column="session_end_date"
+ length="19"
+
+
+
+
+ @hibernate.property
+ column="session_status"
+ length="100"
+
+
+
+
+
+
+
+
+ @hibernate.many-to-one
+ not-null="true"
+ @hibernate.column name="nb_content_uid"
+
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="all-delete-orphan"
+
+ @hibernate.collection-key
+ column="nb_session_uid"
+
+ @hibernate.collection-one-to-many
+ class="org.lamsfoundation.lams.tool.noticeboard.NoticeboardUser"
+
+
+
+
+
+
+
+
+
+
Index: lams_tool_nb/conf/hibernate/mappings/org/lamsfoundation/lams/tool/noticeboard/NoticeboardUser.hbm.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_nb/conf/hibernate/mappings/org/lamsfoundation/lams/tool/noticeboard/Attic/NoticeboardUser.hbm.xml,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_tool_nb/conf/hibernate/mappings/org/lamsfoundation/lams/tool/noticeboard/NoticeboardUser.hbm.xml 23 Aug 2005 05:00:13 -0000 1.1
@@ -0,0 +1,112 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="tl_lanb11_user"
+
+
+
+
+ @hibernate.id
+ generator-class="native"
+ type="java.lang.Long"
+ column="uid"
+
+
+
+
+
+
+
+
+ @hibernate.property
+ column="user_id"
+ length="20"
+ not-null="true"
+
+
+
+
+ @hibernate.property
+ column="username"
+ length="50"
+
+
+
+
+ @hibernate.property
+ column="fullname"
+ length="50"
+
+
+
+
+ @hibernate.property
+ column="user_status"
+ length="50"
+
+
+
+
+
+
+
+
+ @hibernate.many-to-one
+ not-null="true"
+ @hibernate.column name="nb_session_uid"
+
+
+
+
+
+