CVSROOT: /cvs/gnome
Module name: yarrr
Changes by: walters 05/04/22 14:50:51
Modified files:
src/org/gnome/yarrr: ReferencableObject.java Person.java
YarrrMarkup.java Discussion.java
ActiveTopic.java log4j.properties
Yarrr.java ReferencableObjectRegistry.java
Statement.java YarrrXmlRpcMethods.java
LiveComment.java ClosedComment.java
YarrrServlet.java Topic.java
. : .project ChangeLog .classpath build.xml
src/org/gnome/yarrr/tests: YarrrUsingTest.java YarrrTests.java
src/org/gnome/yarrr/xmlrpc: XmlRpcHandler.java
Added files:
src/org/gnome/yarrr: Topic.hbm.xml Statement.hbm.xml
HibernateUtil.java ClosedComment.hbm.xml
Person.hbm.xml
. : derby.jar dom4j-1.6.jar asm-attrs.jar
hibernate.properties antlr-2.7.5H3.jar
hibernate3.jar ehcache-1.1.jar cglib-2.1.jar
ehcache.xml asm.jar
.externalToolBuilders: Metadata.launch
src/org/gnome/yarrr/tests: TestUtils.java
Log message:
2005-04-22 Colin Walters <[EMAIL PROTECTED]>
This is a merge from the "persistence" branch, which implements
persistence for Topics, ClosedComments, Persons, and Statements.
* Metadata.launch: Copy hibernate mappings when they change.
* ActiveTopic.java: Store topicid instead of topic. Change most
methods to look up topic dynamically.
* ClosedComment.hbm.xml: New file.
* ClosedComment.java: Add accessor for content, add load method.
* Discussion.java: Make closeComment return the new ClosedComment.
* HibernateUtil.java: Copied here from yarrr-old. Add some logging.
* LiveComment.java: Add setContents method for testing.
* log4j.properties: Change yarrr appender name to "stdout" for clarity.
* Person.hbm.xml: New file.
* Person.java: Add load and loadOrCreate methods. Implement serializable.
* ReferencableObject.java: Default referenceid is -1; 0 is valid in hibernate.
* ReferencableObjectRegistry.java: Allow for registering loadable classes.
Now references for persistent objects are composed of their class name and
their hibernate ID. When we get a reference, we use it to generically invoke
the class' load method to get the object from Hibernate.
* Statement.hbm.xml: New file.
* Statement.java: Add load method, save ourselves in constructor, etc.
* Topic.hbm.xml: New file.
* Topic.java: Add normal persistence bits and also load method for topic name
and getAllTopics() method.
* Yarrr.java: Change activeTopics map from Topic to String. Set up jdbc and
Hibernate. Register persistent classes. Move PollWebServer bits into
startup method so we don't start webserver in test suite. Add persistence
bits.
* YarrrMarkup.java: Implement serializable by simply serializing ourselves as
string.
* YarrrServlet.java: Invoke startup method on yarrr.
* YarrrXmlRpcMethods.java: Change all invocations of new Person to Person.load.
* TestUtils.java: Copied from yarrr-old.
* YarrrTests.java: Add a bunch of tests for persistence.
* YarrrUsingTest.java: Use temporary dir for DB.
* XmlRpcHandler.java: Wrap XML-RPC invocations in Hibernate transaction.
* *.jar: Import a bunch of java libraries that aren't in jpackage :(
* hibernate.properties: New file.
* ehcache.xml: New file.
URL :
http://cvs.gnome.org/bonsai/cvsquery.cgi?branch=&dir=yarrr&who=walters&date=explicit&mindate=2005-04-22%2014:49&maxdate=2005-04-22%2014:51
_______________________________________________
cvs-commits-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/cvs-commits-list