User: kvvinaymenon
  Date: 01/07/03 13:50:22

  Modified:    src/resources/org/jboss/metadata Tag: Branch_2_4
                        jaws_2_4.dtd
  Log:
  Updated DTD to indicate that the new datasource can be defined at the bean level.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +8 -3      jboss/src/resources/org/jboss/metadata/jaws_2_4.dtd
  
  Index: jaws_2_4.dtd
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/resources/org/jboss/metadata/jaws_2_4.dtd,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- jaws_2_4.dtd      2001/06/22 21:20:12     1.1.2.1
  +++ jaws_2_4.dtd      2001/07/03 20:50:21     1.1.2.2
  @@ -14,7 +14,10 @@
   <!-- the datasource element is used to indicate to JAWS which datasource
    should be used for persistence of the CMP entities in this ejb-jar. It 
    should be the datasource named as it appears in jboss' global naming 
  - context. The default is java:/DefaultDS -->
  + context. The default is java:/DefaultDS 
  + 
  + Beans are also allowed to specify datasources at bean level and will override this 
datasource if specified.
  + -->
   <!ELEMENT datasource (#PCDATA)>
   
   <!-- the type-mapping element is used to indicate to JAWS which set of mappings
  @@ -55,13 +58,15 @@
    pk-constraint: If create-table is on, create it with a primary key.
    time-out: For read-only only, re-load entity after time-out
   -->
  -<!ELEMENT entity (ejb-name,cmp-field*,finder*,read-ahead?,read-only?,
  +<!ELEMENT entity (ejb-name,datasource?,cmp-field*,finder*,read-ahead?,read-only?,
                     
table-name?,tuned-updates?,create-table?,remove-table?,select-for-update?,time-out?,pk-constraint?)>
   
   <!-- ejb-name within an entity element must contain the ejb-name as specified
    in ejb-jar.xml. -->
   <!ELEMENT ejb-name (#PCDATA)>
  -
  +<!-- The datasource at bean level. If specified the bean will use this datasource 
instead of the global one. 
  +Else the global one is used -->
  +<!ELEMENT datasource (#PCDATA)>
   <!ELEMENT cmp-field (field-name, column-name)>
   <!ELEMENT field-name (#PCDATA)>
   <!ELEMENT column-name (#PCDATA)>
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to