[jboss-cvs] jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/model ...
Christian Bauer
christian at hibernate.org
Tue Aug 28 20:29:22 EDT 2007
User: cbauer
Date: 07/08/28 20:29:22
Modified: examples/wiki/src/main/org/jboss/seam/wiki/core/model
Document.java File.java Node.java
Log:
First attempt at bloxsom importer
Revision Changes Path
1.15 +1 -1 jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/model/Document.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Document.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/model/Document.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- Document.java 25 Aug 2007 22:35:13 -0000 1.14
+++ Document.java 29 Aug 2007 00:29:22 -0000 1.15
@@ -51,7 +51,7 @@
private List<Comment> comments;
@Column(table = "NODE_DOCUMENT", name = "PLUGINS_USED", nullable = false)
- private String pluginsUsed;
+ private String pluginsUsed = "";
public Document() {
super("New Document");
1.12 +0 -0 jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/model/File.java
(In the diff below, changes in quantity of whitespace are not shown.)
1.21 +2 -1 jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/model/Node.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Node.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/model/Node.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- Node.java 27 Aug 2007 22:22:30 -0000 1.20
+++ Node.java 29 Aug 2007 00:29:22 -0000 1.21
@@ -62,12 +62,13 @@
@Column(name = "NAME", length = 255, nullable = false)
@Length(min = 3, max = 255)
- @Pattern(regex="[a-zA-Z]?.+", message="Name must start with a letter")
+ @Pattern(regex="^[a-zA-Z0-9]+.*", message="Name must start with a letter or number")
@org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.TOKENIZED)
@Searchable(description = "Name")
protected String name;
@Column(name = "WIKINAME", length = 255, nullable = false)
+ @Pattern(regex="^[A-Z0-9]+.*", message="Name must start with an uppercase letter or number")
protected String wikiname;
@Column(name = "MENU_ITEM", nullable = false)
More information about the jboss-cvs-commits
mailing list