You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by th...@apache.org on 2003/08/08 22:40:44 UTC
cvs commit: db-ojb/src/test/org/apache/ojb repository.dtd
thma 2003/08/08 13:40:43
Modified: src/test/org/apache/ojb repository.dtd
Log:
add patch to make definition of JDBC types optional.
Thanks to Carsten Ziegeler
Revision Changes Path
1.44 +10 -7 db-ojb/src/test/org/apache/ojb/repository.dtd
Index: repository.dtd
===================================================================
RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/repository.dtd,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- repository.dtd 24 Jul 2003 21:55:04 -0000 1.43
+++ repository.dtd 8 Aug 2003 20:40:43 -0000 1.44
@@ -313,14 +313,15 @@
propagate to this class. Currently relevant for the ODMG layer only.
The optional initialization-method specifies a no-argument instance
- method that is invoked after reading an instnace from a database row.
+ method that is invoked after reading an instance from a database row.
It can be used to do initialization and validations.
- The optional factory-method specifies a static no-argument method
- (specified by the factory-class attribute)
+ The optional factory-class specifies a factory-class that
that is to be used instead of a no argument constructor.
- If either factory-class or factory-method is specified, the other
- is mandatory.
+ If the factory-class is specified the factory-method
+ also must be defined.
+ factory-method refers to a static no-argument method
+ of the factory-class class.
The refresh attribute can be set to true to force OJB to refresh
instances when loaded from cache. It's set to false by default.
@@ -386,7 +387,9 @@
The column attribute specifies the column the persistent classes field
is mapped to.
- The jdbc-type attribute specifies the JDBC type of the column.
+ The optional jdbc-type attribute specifies the JDBC type of the column.
+ If not specified OJB tries to identify the JDBC type by inspecting the
+ Java attribute by reflection.
The primarykey specifies if the column is a primary key column.
@@ -448,7 +451,7 @@
jdbc-type (BIT | TINYINT | SMALLINT | INTEGER | BIGINT | DOUBLE |
FLOAT | REAL | NUMERIC | DECIMAL | CHAR | VARCHAR |
LONGVARCHAR | DATE | TIME | TIMESTAMP | BINARY |
- VARBINARY | LONGVARBINARY | CLOB | BLOB) #REQUIRED
+ VARBINARY | LONGVARBINARY | CLOB | BLOB) #IMPLIED
primarykey (true | false) "false"
nullable (true | false) "true"
indexed (true | false) "false"
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org