geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pra...@apache.org
Subject svn commit: r588248 [8/8] - in /geronimo/sandbox/jetspeed-integration: ./ jetspeed-base/ jetspeed-base/src/main/sql/ jetspeed-database/ jetspeed-database/src/ jetspeed-database/src/main/ jetspeed-database/src/main/database/ jetspeed-database/src/main/d...
Date Thu, 25 Oct 2007 15:16:11 GMT
Added: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/postgres/security-schema.sql
URL: http://svn.apache.org/viewvc/geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/postgres/security-schema.sql?rev=588248&view=auto
==============================================================================
--- geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/postgres/security-schema.sql (added)
+++ geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/postgres/security-schema.sql Thu Oct 25 08:16:02 2007
@@ -0,0 +1,391 @@
+
+-----------------------------------------------------------------------------
+-- SECURITY_PRINCIPAL
+-----------------------------------------------------------------------------
+
+
+
+CREATE TABLE SECURITY_PRINCIPAL
+(
+    PRINCIPAL_ID INTEGER NOT NULL,
+    CLASSNAME VARCHAR(254) NOT NULL,
+    IS_MAPPING_ONLY INT2 NOT NULL,
+    IS_ENABLED INT2 NOT NULL,
+    FULL_PATH VARCHAR(254) NOT NULL,
+    CREATION_DATE TIMESTAMP NOT NULL,
+    MODIFIED_DATE TIMESTAMP NOT NULL,
+    PRIMARY KEY (PRINCIPAL_ID),
+    CONSTRAINT UIX_SECURITY_PRINCIPAL UNIQUE (FULL_PATH)
+);
+
+
+
+
+-----------------------------------------------------------------------------
+-- SECURITY_PERMISSION
+-----------------------------------------------------------------------------
+
+
+
+CREATE TABLE SECURITY_PERMISSION
+(
+    PERMISSION_ID INTEGER NOT NULL,
+    CLASSNAME VARCHAR(254) NOT NULL,
+    NAME VARCHAR(254) NOT NULL,
+    ACTIONS VARCHAR(254) NOT NULL,
+    CREATION_DATE TIMESTAMP NOT NULL,
+    MODIFIED_DATE TIMESTAMP NOT NULL,
+    PRIMARY KEY (PERMISSION_ID)
+);
+
+
+
+
+-----------------------------------------------------------------------------
+-- PRINCIPAL_PERMISSION
+-----------------------------------------------------------------------------
+
+
+
+CREATE TABLE PRINCIPAL_PERMISSION
+(
+    PRINCIPAL_ID INTEGER NOT NULL,
+    PERMISSION_ID INTEGER NOT NULL,
+    PRIMARY KEY (PRINCIPAL_ID,PERMISSION_ID)
+);
+
+
+
+
+-----------------------------------------------------------------------------
+-- SECURITY_CREDENTIAL
+-----------------------------------------------------------------------------
+
+
+
+CREATE TABLE SECURITY_CREDENTIAL
+(
+    CREDENTIAL_ID INTEGER NOT NULL,
+    PRINCIPAL_ID INTEGER NOT NULL,
+    COLUMN_VALUE VARCHAR(254) NOT NULL,
+    TYPE INT2 NOT NULL,
+    CLASSNAME VARCHAR(254),
+    UPDATE_REQUIRED INT2 NOT NULL,
+    IS_ENCODED INT2 NOT NULL,
+    IS_ENABLED INT2 NOT NULL,
+    AUTH_FAILURES INT2 NOT NULL,
+    IS_EXPIRED INT2 NOT NULL,
+    CREATION_DATE TIMESTAMP NOT NULL,
+    MODIFIED_DATE TIMESTAMP NOT NULL,
+    PREV_AUTH_DATE TIMESTAMP,
+    LAST_AUTH_DATE TIMESTAMP,
+    EXPIRATION_DATE DATE,
+    PRIMARY KEY (CREDENTIAL_ID)
+);
+
+
+
+
+-----------------------------------------------------------------------------
+-- SSO_SITE
+-----------------------------------------------------------------------------
+
+
+
+CREATE TABLE SSO_SITE
+(
+    SITE_ID INTEGER NOT NULL,
+    NAME VARCHAR(254) NOT NULL,
+    URL VARCHAR(254) NOT NULL,
+    ALLOW_USER_SET INT2 default 0,
+    REQUIRES_CERTIFICATE INT2 default 0,
+    CHALLENGE_RESPONSE_AUTH INT2 default 0,
+    FORM_AUTH INT2 default 0,
+    FORM_USER_FIELD VARCHAR(128),
+    FORM_PWD_FIELD VARCHAR(128),
+    REALM VARCHAR(128),
+    PRIMARY KEY (SITE_ID),
+    CONSTRAINT UIX_SITE_URL UNIQUE (URL)
+);
+
+
+
+
+-----------------------------------------------------------------------------
+-- SSO_COOKIE
+-----------------------------------------------------------------------------
+
+
+
+CREATE TABLE SSO_COOKIE
+(
+    COOKIE_ID INTEGER NOT NULL,
+    COOKIE VARCHAR(1024) NOT NULL,
+    CREATE_DATE TIMESTAMP NOT NULL,
+    PRIMARY KEY (COOKIE_ID)
+);
+
+
+
+
+-----------------------------------------------------------------------------
+-- SSO_SITE_TO_PRINCIPALS
+-----------------------------------------------------------------------------
+
+
+
+CREATE TABLE SSO_SITE_TO_PRINCIPALS
+(
+    SITE_ID INTEGER NOT NULL,
+    PRINCIPAL_ID INTEGER NOT NULL,
+    PRIMARY KEY (SITE_ID,PRINCIPAL_ID)
+);
+
+
+
+
+-----------------------------------------------------------------------------
+-- SSO_PRINCIPAL_TO_REMOTE
+-----------------------------------------------------------------------------
+
+
+
+CREATE TABLE SSO_PRINCIPAL_TO_REMOTE
+(
+    PRINCIPAL_ID INTEGER NOT NULL,
+    REMOTE_PRINCIPAL_ID INTEGER NOT NULL,
+    PRIMARY KEY (PRINCIPAL_ID,REMOTE_PRINCIPAL_ID)
+);
+
+
+
+
+-----------------------------------------------------------------------------
+-- SSO_SITE_TO_REMOTE
+-----------------------------------------------------------------------------
+
+
+
+CREATE TABLE SSO_SITE_TO_REMOTE
+(
+    SITE_ID INTEGER NOT NULL,
+    PRINCIPAL_ID INTEGER NOT NULL,
+    PRIMARY KEY (SITE_ID,PRINCIPAL_ID)
+);
+
+
+
+
+-----------------------------------------------------------------------------
+-- SSO_COOKIE_TO_REMOTE
+-----------------------------------------------------------------------------
+
+
+
+CREATE TABLE SSO_COOKIE_TO_REMOTE
+(
+    COOKIE_ID INTEGER NOT NULL,
+    REMOTE_PRINCIPAL_ID INTEGER NOT NULL,
+    PRIMARY KEY (COOKIE_ID,REMOTE_PRINCIPAL_ID)
+);
+
+
+
+
+-----------------------------------------------------------------------------
+-- SECURITY_USER_ROLE
+-----------------------------------------------------------------------------
+
+
+
+CREATE TABLE SECURITY_USER_ROLE
+(
+    USER_ID INTEGER NOT NULL,
+    ROLE_ID INTEGER NOT NULL,
+    PRIMARY KEY (USER_ID,ROLE_ID)
+);
+
+
+
+
+-----------------------------------------------------------------------------
+-- SECURITY_USER_GROUP
+-----------------------------------------------------------------------------
+
+
+
+CREATE TABLE SECURITY_USER_GROUP
+(
+    USER_ID INTEGER NOT NULL,
+    GROUP_ID INTEGER NOT NULL,
+    PRIMARY KEY (USER_ID,GROUP_ID)
+);
+
+
+
+
+-----------------------------------------------------------------------------
+-- SECURITY_GROUP_ROLE
+-----------------------------------------------------------------------------
+
+
+
+CREATE TABLE SECURITY_GROUP_ROLE
+(
+    GROUP_ID INTEGER NOT NULL,
+    ROLE_ID INTEGER NOT NULL,
+    PRIMARY KEY (GROUP_ID,ROLE_ID)
+);
+
+
+
+
+----------------------------------------------------------------------
+-- SECURITY_GROUP_ROLE                                                      
+----------------------------------------------------------------------
+
+
+----------------------------------------------------------------------
+-- SECURITY_PRINCIPAL                                                      
+----------------------------------------------------------------------
+
+
+----------------------------------------------------------------------
+-- SECURITY_PERMISSION                                                      
+----------------------------------------------------------------------
+
+ALTER TABLE PRINCIPAL_PERMISSION
+    ADD CONSTRAINT FK_PRINCIPAL_PERMISSION_1 FOREIGN KEY (PERMISSION_ID)
+    REFERENCES SECURITY_PERMISSION (PERMISSION_ID)
+    ON DELETE CASCADE 
+;
+ALTER TABLE PRINCIPAL_PERMISSION
+    ADD CONSTRAINT FK_PRINCIPAL_PERMISSION_2 FOREIGN KEY (PRINCIPAL_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+    ON DELETE CASCADE 
+;
+
+----------------------------------------------------------------------
+-- PRINCIPAL_PERMISSION                                                      
+----------------------------------------------------------------------
+
+ALTER TABLE SECURITY_CREDENTIAL
+    ADD CONSTRAINT FK_SECURITY_CREDENTIAL_1 FOREIGN KEY (PRINCIPAL_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+    ON DELETE CASCADE 
+;
+
+----------------------------------------------------------------------
+-- SECURITY_CREDENTIAL                                                      
+----------------------------------------------------------------------
+
+
+----------------------------------------------------------------------
+-- SSO_SITE                                                      
+----------------------------------------------------------------------
+
+
+----------------------------------------------------------------------
+-- SSO_COOKIE                                                      
+----------------------------------------------------------------------
+
+ALTER TABLE SSO_SITE_TO_PRINCIPALS
+    ADD CONSTRAINT SSO_SITE_TO_PRINC_FK1 FOREIGN KEY (SITE_ID)
+    REFERENCES SSO_SITE (SITE_ID)
+    ON DELETE CASCADE 
+;
+ALTER TABLE SSO_SITE_TO_PRINCIPALS
+    ADD CONSTRAINT SSO_SITE_TO_PRINC_FK2 FOREIGN KEY (PRINCIPAL_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+    ON DELETE CASCADE 
+;
+
+----------------------------------------------------------------------
+-- SSO_SITE_TO_PRINCIPALS                                                      
+----------------------------------------------------------------------
+
+ALTER TABLE SSO_PRINCIPAL_TO_REMOTE
+    ADD CONSTRAINT FK_SSO_PRINCIPAL_TO_REMOTE_1 FOREIGN KEY (PRINCIPAL_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+    ON DELETE CASCADE 
+;
+ALTER TABLE SSO_PRINCIPAL_TO_REMOTE
+    ADD CONSTRAINT FK_SSO_PRINCIPAL_TO_REMOTE_2 FOREIGN KEY (REMOTE_PRINCIPAL_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+    ON DELETE CASCADE 
+;
+
+----------------------------------------------------------------------
+-- SSO_PRINCIPAL_TO_REMOTE                                                      
+----------------------------------------------------------------------
+
+ALTER TABLE SSO_SITE_TO_REMOTE
+    ADD CONSTRAINT FK_SSO_SITE_TO_REMOTE_1 FOREIGN KEY (SITE_ID)
+    REFERENCES SSO_SITE (SITE_ID)
+    ON DELETE CASCADE 
+;
+ALTER TABLE SSO_SITE_TO_REMOTE
+    ADD CONSTRAINT FK_SSO_SITE_TO_REMOTE_2 FOREIGN KEY (PRINCIPAL_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+    ON DELETE CASCADE 
+;
+
+----------------------------------------------------------------------
+-- SSO_SITE_TO_REMOTE                                                      
+----------------------------------------------------------------------
+
+ALTER TABLE SSO_COOKIE_TO_REMOTE
+    ADD CONSTRAINT FK_SSO_COOKIE_TO_REMOTE_1 FOREIGN KEY (COOKIE_ID)
+    REFERENCES SSO_COOKIE (COOKIE_ID)
+    ON DELETE CASCADE 
+;
+ALTER TABLE SSO_COOKIE_TO_REMOTE
+    ADD CONSTRAINT FK_SSO_COOKIE_TO_REMOTE_2 FOREIGN KEY (REMOTE_PRINCIPAL_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+    ON DELETE CASCADE 
+;
+
+----------------------------------------------------------------------
+-- SSO_COOKIE_TO_REMOTE                                                      
+----------------------------------------------------------------------
+
+ALTER TABLE SECURITY_USER_ROLE
+    ADD CONSTRAINT FK_SECURITY_USER_ROLE_1 FOREIGN KEY (ROLE_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+    ON DELETE CASCADE 
+;
+ALTER TABLE SECURITY_USER_ROLE
+    ADD CONSTRAINT FK_SECURITY_USER_ROLE_2 FOREIGN KEY (USER_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+    ON DELETE CASCADE 
+;
+
+----------------------------------------------------------------------
+-- SECURITY_USER_ROLE                                                      
+----------------------------------------------------------------------
+
+ALTER TABLE SECURITY_USER_GROUP
+    ADD CONSTRAINT FK_SECURITY_USER_GROUP_1 FOREIGN KEY (GROUP_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+    ON DELETE CASCADE 
+;
+ALTER TABLE SECURITY_USER_GROUP
+    ADD CONSTRAINT FK_SECURITY_USER_GROUP_2 FOREIGN KEY (USER_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+    ON DELETE CASCADE 
+;
+
+----------------------------------------------------------------------
+-- SECURITY_USER_GROUP                                                      
+----------------------------------------------------------------------
+
+ALTER TABLE SECURITY_GROUP_ROLE
+    ADD CONSTRAINT FK_SECURITY_GROUP_ROLE_1 FOREIGN KEY (GROUP_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+    ON DELETE CASCADE 
+;
+ALTER TABLE SECURITY_GROUP_ROLE
+    ADD CONSTRAINT FK_SECURITY_GROUP_ROLE_2 FOREIGN KEY (ROLE_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+    ON DELETE CASCADE 
+;

Propchange: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/postgres/security-schema.sql
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/postgres/security-schema.sql
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/postgres/security-schema.sql
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/phase1-schema.sql
URL: http://svn.apache.org/viewvc/geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/phase1-schema.sql?rev=588248&view=auto
==============================================================================
--- geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/phase1-schema.sql (added)
+++ geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/phase1-schema.sql Thu Oct 25 08:16:02 2007
@@ -0,0 +1,226 @@
+
+-----------------------------------------------------------------------------
+-- MEDIA_TYPE
+-----------------------------------------------------------------------------
+
+CREATE TABLE MEDIA_TYPE
+(
+    MEDIATYPE_ID INTEGER NOT NULL,
+    NAME VARCHAR(80) NOT NULL,
+    CHARACTER_SET VARCHAR(40),
+    TITLE VARCHAR(80),
+    DESCRIPTION LONG VARCHAR
+);
+
+ALTER TABLE MEDIA_TYPE
+    ADD PRIMARY KEY (MEDIATYPE_ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- CLIENT
+-----------------------------------------------------------------------------
+
+CREATE TABLE CLIENT
+(
+    CLIENT_ID INTEGER NOT NULL,
+    EVAL_ORDER INTEGER NOT NULL,
+    NAME VARCHAR(80) NOT NULL,
+    USER_AGENT_PATTERN VARCHAR(128),
+    MANUFACTURER VARCHAR(80),
+    MODEL VARCHAR(80),
+    VERSION VARCHAR(40),
+    PREFERRED_MIMETYPE_ID INTEGER NOT NULL
+);
+
+ALTER TABLE CLIENT
+    ADD PRIMARY KEY (CLIENT_ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- MIMETYPE
+-----------------------------------------------------------------------------
+
+CREATE TABLE MIMETYPE
+(
+    MIMETYPE_ID INTEGER NOT NULL,
+    NAME VARCHAR(80) NOT NULL
+);
+
+ALTER TABLE MIMETYPE
+    ADD PRIMARY KEY (MIMETYPE_ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- CAPABILITY
+-----------------------------------------------------------------------------
+
+CREATE TABLE CAPABILITY
+(
+    CAPABILITY_ID INTEGER NOT NULL,
+    CAPABILITY VARCHAR(80) NOT NULL
+);
+
+ALTER TABLE CAPABILITY
+    ADD PRIMARY KEY (CAPABILITY_ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- CLIENT_TO_CAPABILITY
+-----------------------------------------------------------------------------
+
+CREATE TABLE CLIENT_TO_CAPABILITY
+(
+    CLIENT_ID INTEGER NOT NULL,
+    CAPABILITY_ID INTEGER NOT NULL
+);
+
+
+
+
+-----------------------------------------------------------------------------
+-- CLIENT_TO_MIMETYPE
+-----------------------------------------------------------------------------
+
+CREATE TABLE CLIENT_TO_MIMETYPE
+(
+    CLIENT_ID INTEGER NOT NULL,
+    MIMETYPE_ID INTEGER NOT NULL
+);
+
+
+
+
+-----------------------------------------------------------------------------
+-- MEDIATYPE_TO_CAPABILITY
+-----------------------------------------------------------------------------
+
+CREATE TABLE MEDIATYPE_TO_CAPABILITY
+(
+    MEDIATYPE_ID INTEGER NOT NULL,
+    CAPABILITY_ID INTEGER NOT NULL
+);
+
+
+
+
+-----------------------------------------------------------------------------
+-- MEDIATYPE_TO_MIMETYPE
+-----------------------------------------------------------------------------
+
+CREATE TABLE MEDIATYPE_TO_MIMETYPE
+(
+    MEDIATYPE_ID INTEGER NOT NULL,
+    MIMETYPE_ID INTEGER NOT NULL
+);
+
+
+
+
+-----------------------------------------------------------------------------
+-- PORTLET_STATISTICS
+-----------------------------------------------------------------------------
+
+CREATE TABLE PORTLET_STATISTICS
+(
+    IPADDRESS VARCHAR(80),
+    USER_NAME VARCHAR(80),
+    TIME_STAMP TIMESTAMP,
+    PAGE VARCHAR(80),
+    PORTLET VARCHAR(255),
+    STATUS INTEGER,
+    ELAPSED_TIME FIXED(38,0)
+);
+
+
+
+
+-----------------------------------------------------------------------------
+-- PAGE_STATISTICS
+-----------------------------------------------------------------------------
+
+CREATE TABLE PAGE_STATISTICS
+(
+    IPADDRESS VARCHAR(80),
+    USER_NAME VARCHAR(80),
+    TIME_STAMP TIMESTAMP,
+    PAGE VARCHAR(80),
+    STATUS INTEGER,
+    ELAPSED_TIME FIXED(38,0)
+);
+
+
+
+
+-----------------------------------------------------------------------------
+-- USER_STATISTICS
+-----------------------------------------------------------------------------
+
+CREATE TABLE USER_STATISTICS
+(
+    IPADDRESS VARCHAR(80),
+    USER_NAME VARCHAR(80),
+    TIME_STAMP TIMESTAMP,
+    STATUS INTEGER,
+    ELAPSED_TIME FIXED(38,0)
+);
+
+
+
+
+-----------------------------------------------------------------------------
+-- ADMIN_ACTIVITY
+-----------------------------------------------------------------------------
+
+CREATE TABLE ADMIN_ACTIVITY
+(
+    ACTIVITY VARCHAR(40),
+    CATEGORY VARCHAR(40),
+    ADMIN VARCHAR(80),
+    USER_NAME VARCHAR(80),
+    TIME_STAMP TIMESTAMP,
+    IPADDRESS VARCHAR(80),
+    ATTR_NAME VARCHAR(40),
+    ATTR_VALUE_BEFORE VARCHAR(80),
+    ATTR_VALUE_AFTER VARCHAR(80),
+    DESCRIPTION VARCHAR(128)
+);
+
+
+
+
+-----------------------------------------------------------------------------
+-- USER_ACTIVITY
+-----------------------------------------------------------------------------
+
+CREATE TABLE USER_ACTIVITY
+(
+    ACTIVITY VARCHAR(40),
+    CATEGORY VARCHAR(40),
+    USER_NAME VARCHAR(80),
+    TIME_STAMP TIMESTAMP,
+    IPADDRESS VARCHAR(80),
+    ATTR_NAME VARCHAR(40),
+    ATTR_VALUE_BEFORE VARCHAR(80),
+    ATTR_VALUE_AFTER VARCHAR(80),
+    DESCRIPTION VARCHAR(128)
+);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

Propchange: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/phase1-schema.sql
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/phase1-schema.sql
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/phase1-schema.sql
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/phase2-schema.sql
URL: http://svn.apache.org/viewvc/geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/phase2-schema.sql?rev=588248&view=auto
==============================================================================
--- geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/phase2-schema.sql (added)
+++ geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/phase2-schema.sql Thu Oct 25 08:16:02 2007
@@ -0,0 +1,879 @@
+
+-----------------------------------------------------------------------------
+-- FOLDER
+-----------------------------------------------------------------------------
+
+CREATE TABLE FOLDER
+(
+    FOLDER_ID INTEGER NOT NULL,
+    PARENT_ID INTEGER,
+    PATH VARCHAR(240) NOT NULL,
+    NAME VARCHAR(80) NOT NULL,
+    TITLE VARCHAR(100),
+    SHORT_TITLE VARCHAR(40),
+    IS_HIDDEN SMALLINT NOT NULL,
+    SKIN VARCHAR(80),
+    DEFAULT_LAYOUT_DECORATOR VARCHAR(80),
+    DEFAULT_PORTLET_DECORATOR VARCHAR(80),
+    DEFAULT_PAGE_NAME VARCHAR(80),
+    SUBSITE VARCHAR(40),
+    USER_PRINCIPAL VARCHAR(40),
+    ROLE_PRINCIPAL VARCHAR(40),
+    GROUP_PRINCIPAL VARCHAR(40),
+    MEDIATYPE VARCHAR(15),
+    LOCALE VARCHAR(20),
+    EXT_ATTR_NAME VARCHAR(15),
+    EXT_ATTR_VALUE VARCHAR(40),
+    OWNER_PRINCIPAL VARCHAR(40),
+    UNIQUE (PATH)
+);
+
+ALTER TABLE FOLDER
+    ADD PRIMARY KEY (FOLDER_ID) ;
+
+CREATE  INDEX IX_FOLDER_1 ON FOLDER (PARENT_ID);
+
+
+-----------------------------------------------------------------------------
+-- FOLDER_METADATA
+-----------------------------------------------------------------------------
+
+CREATE TABLE FOLDER_METADATA
+(
+    METADATA_ID INTEGER NOT NULL,
+    FOLDER_ID INTEGER NOT NULL,
+    NAME VARCHAR(15) NOT NULL,
+    LOCALE VARCHAR(20) NOT NULL,
+    VALUE VARCHAR(100) NOT NULL,
+    UNIQUE (FOLDER_ID, NAME, LOCALE, VALUE)
+);
+
+ALTER TABLE FOLDER_METADATA
+    ADD PRIMARY KEY (METADATA_ID) ;
+
+CREATE  INDEX IX_FOLDER_METADATA_1 ON FOLDER_METADATA (FOLDER_ID);
+
+
+-----------------------------------------------------------------------------
+-- FOLDER_CONSTRAINT
+-----------------------------------------------------------------------------
+
+CREATE TABLE FOLDER_CONSTRAINT
+(
+    CONSTRAINT_ID INTEGER NOT NULL,
+    FOLDER_ID INTEGER NOT NULL,
+    APPLY_ORDER INTEGER NOT NULL,
+    USER_PRINCIPALS_ACL VARCHAR(120),
+    ROLE_PRINCIPALS_ACL VARCHAR(120),
+    GROUP_PRINCIPALS_ACL VARCHAR(120),
+    PERMISSIONS_ACL VARCHAR(120)
+);
+
+ALTER TABLE FOLDER_CONSTRAINT
+    ADD PRIMARY KEY (CONSTRAINT_ID) ;
+
+CREATE  INDEX IX_FOLDER_CONSTRAINT_1 ON FOLDER_CONSTRAINT (FOLDER_ID);
+
+
+-----------------------------------------------------------------------------
+-- FOLDER_CONSTRAINTS_REF
+-----------------------------------------------------------------------------
+
+CREATE TABLE FOLDER_CONSTRAINTS_REF
+(
+    CONSTRAINTS_REF_ID INTEGER NOT NULL,
+    FOLDER_ID INTEGER NOT NULL,
+    APPLY_ORDER INTEGER NOT NULL,
+    NAME VARCHAR(40) NOT NULL,
+    UNIQUE (FOLDER_ID, NAME)
+);
+
+ALTER TABLE FOLDER_CONSTRAINTS_REF
+    ADD PRIMARY KEY (CONSTRAINTS_REF_ID) ;
+
+CREATE  INDEX IX_FOLDER_CONSTRAINTS_REF_1 ON FOLDER_CONSTRAINTS_REF (FOLDER_ID);
+
+
+-----------------------------------------------------------------------------
+-- FOLDER_ORDER
+-----------------------------------------------------------------------------
+
+CREATE TABLE FOLDER_ORDER
+(
+    ORDER_ID INTEGER NOT NULL,
+    FOLDER_ID INTEGER NOT NULL,
+    SORT_ORDER INTEGER NOT NULL,
+    NAME VARCHAR(80) NOT NULL,
+    UNIQUE (FOLDER_ID, NAME)
+);
+
+ALTER TABLE FOLDER_ORDER
+    ADD PRIMARY KEY (ORDER_ID) ;
+
+CREATE  INDEX IX_FOLDER_ORDER_1 ON FOLDER_ORDER (FOLDER_ID);
+
+
+-----------------------------------------------------------------------------
+-- FOLDER_MENU
+-----------------------------------------------------------------------------
+
+CREATE TABLE FOLDER_MENU
+(
+    MENU_ID INTEGER NOT NULL,
+    CLASS_NAME VARCHAR(100) NOT NULL,
+    PARENT_ID INTEGER,
+    FOLDER_ID INTEGER,
+    ELEMENT_ORDER INTEGER,
+    NAME VARCHAR(100),
+    TITLE VARCHAR(100),
+    SHORT_TITLE VARCHAR(40),
+    TEXT VARCHAR(100),
+    OPTIONS VARCHAR(255),
+    DEPTH INTEGER,
+    IS_PATHS SMALLINT,
+    IS_REGEXP SMALLINT,
+    PROFILE VARCHAR(80),
+    OPTIONS_ORDER VARCHAR(255),
+    SKIN VARCHAR(80),
+    IS_NEST SMALLINT
+);
+
+ALTER TABLE FOLDER_MENU
+    ADD PRIMARY KEY (MENU_ID) ;
+
+CREATE  INDEX IX_FOLDER_MENU_1 ON FOLDER_MENU (PARENT_ID);
+CREATE  INDEX UN_FOLDER_MENU_1 ON FOLDER_MENU (FOLDER_ID, NAME);
+
+
+-----------------------------------------------------------------------------
+-- FOLDER_MENU_METADATA
+-----------------------------------------------------------------------------
+
+CREATE TABLE FOLDER_MENU_METADATA
+(
+    METADATA_ID INTEGER NOT NULL,
+    MENU_ID INTEGER NOT NULL,
+    NAME VARCHAR(15) NOT NULL,
+    LOCALE VARCHAR(20) NOT NULL,
+    VALUE VARCHAR(100) NOT NULL,
+    UNIQUE (MENU_ID, NAME, LOCALE, VALUE)
+);
+
+ALTER TABLE FOLDER_MENU_METADATA
+    ADD PRIMARY KEY (METADATA_ID) ;
+
+CREATE  INDEX IX_FOLDER_MENU_METADATA_1 ON FOLDER_MENU_METADATA (MENU_ID);
+
+
+-----------------------------------------------------------------------------
+-- PAGE
+-----------------------------------------------------------------------------
+
+CREATE TABLE PAGE
+(
+    PAGE_ID INTEGER NOT NULL,
+    PARENT_ID INTEGER NOT NULL,
+    PATH VARCHAR(240) NOT NULL,
+    NAME VARCHAR(80) NOT NULL,
+    VERSION VARCHAR(40),
+    TITLE VARCHAR(100),
+    SHORT_TITLE VARCHAR(40),
+    IS_HIDDEN SMALLINT NOT NULL,
+    SKIN VARCHAR(80),
+    DEFAULT_LAYOUT_DECORATOR VARCHAR(80),
+    DEFAULT_PORTLET_DECORATOR VARCHAR(80),
+    SUBSITE VARCHAR(40),
+    USER_PRINCIPAL VARCHAR(40),
+    ROLE_PRINCIPAL VARCHAR(40),
+    GROUP_PRINCIPAL VARCHAR(40),
+    MEDIATYPE VARCHAR(15),
+    LOCALE VARCHAR(20),
+    EXT_ATTR_NAME VARCHAR(15),
+    EXT_ATTR_VALUE VARCHAR(40),
+    OWNER_PRINCIPAL VARCHAR(40),
+    UNIQUE (PATH)
+);
+
+ALTER TABLE PAGE
+    ADD PRIMARY KEY (PAGE_ID) ;
+
+CREATE  INDEX IX_PAGE_1 ON PAGE (PARENT_ID);
+
+
+-----------------------------------------------------------------------------
+-- PAGE_METADATA
+-----------------------------------------------------------------------------
+
+CREATE TABLE PAGE_METADATA
+(
+    METADATA_ID INTEGER NOT NULL,
+    PAGE_ID INTEGER NOT NULL,
+    NAME VARCHAR(15) NOT NULL,
+    LOCALE VARCHAR(20) NOT NULL,
+    VALUE VARCHAR(100) NOT NULL,
+    UNIQUE (PAGE_ID, NAME, LOCALE, VALUE)
+);
+
+ALTER TABLE PAGE_METADATA
+    ADD PRIMARY KEY (METADATA_ID) ;
+
+CREATE  INDEX IX_PAGE_METADATA_1 ON PAGE_METADATA (PAGE_ID);
+
+
+-----------------------------------------------------------------------------
+-- PAGE_CONSTRAINT
+-----------------------------------------------------------------------------
+
+CREATE TABLE PAGE_CONSTRAINT
+(
+    CONSTRAINT_ID INTEGER NOT NULL,
+    PAGE_ID INTEGER NOT NULL,
+    APPLY_ORDER INTEGER NOT NULL,
+    USER_PRINCIPALS_ACL VARCHAR(120),
+    ROLE_PRINCIPALS_ACL VARCHAR(120),
+    GROUP_PRINCIPALS_ACL VARCHAR(120),
+    PERMISSIONS_ACL VARCHAR(120)
+);
+
+ALTER TABLE PAGE_CONSTRAINT
+    ADD PRIMARY KEY (CONSTRAINT_ID) ;
+
+CREATE  INDEX IX_PAGE_CONSTRAINT_1 ON PAGE_CONSTRAINT (PAGE_ID);
+
+
+-----------------------------------------------------------------------------
+-- PAGE_CONSTRAINTS_REF
+-----------------------------------------------------------------------------
+
+CREATE TABLE PAGE_CONSTRAINTS_REF
+(
+    CONSTRAINTS_REF_ID INTEGER NOT NULL,
+    PAGE_ID INTEGER NOT NULL,
+    APPLY_ORDER INTEGER NOT NULL,
+    NAME VARCHAR(40) NOT NULL,
+    UNIQUE (PAGE_ID, NAME)
+);
+
+ALTER TABLE PAGE_CONSTRAINTS_REF
+    ADD PRIMARY KEY (CONSTRAINTS_REF_ID) ;
+
+CREATE  INDEX IX_PAGE_CONSTRAINTS_REF_1 ON PAGE_CONSTRAINTS_REF (PAGE_ID);
+
+
+-----------------------------------------------------------------------------
+-- PAGE_MENU
+-----------------------------------------------------------------------------
+
+CREATE TABLE PAGE_MENU
+(
+    MENU_ID INTEGER NOT NULL,
+    CLASS_NAME VARCHAR(100) NOT NULL,
+    PARENT_ID INTEGER,
+    PAGE_ID INTEGER,
+    ELEMENT_ORDER INTEGER,
+    NAME VARCHAR(100),
+    TITLE VARCHAR(100),
+    SHORT_TITLE VARCHAR(40),
+    TEXT VARCHAR(100),
+    OPTIONS VARCHAR(255),
+    DEPTH INTEGER,
+    IS_PATHS SMALLINT,
+    IS_REGEXP SMALLINT,
+    PROFILE VARCHAR(80),
+    OPTIONS_ORDER VARCHAR(255),
+    SKIN VARCHAR(80),
+    IS_NEST SMALLINT
+);
+
+ALTER TABLE PAGE_MENU
+    ADD PRIMARY KEY (MENU_ID) ;
+
+CREATE  INDEX IX_PAGE_MENU_1 ON PAGE_MENU (PARENT_ID);
+CREATE  INDEX UN_PAGE_MENU_1 ON PAGE_MENU (PAGE_ID, NAME);
+
+
+-----------------------------------------------------------------------------
+-- PAGE_MENU_METADATA
+-----------------------------------------------------------------------------
+
+CREATE TABLE PAGE_MENU_METADATA
+(
+    METADATA_ID INTEGER NOT NULL,
+    MENU_ID INTEGER NOT NULL,
+    NAME VARCHAR(15) NOT NULL,
+    LOCALE VARCHAR(20) NOT NULL,
+    VALUE VARCHAR(100) NOT NULL,
+    UNIQUE (MENU_ID, NAME, LOCALE, VALUE)
+);
+
+ALTER TABLE PAGE_MENU_METADATA
+    ADD PRIMARY KEY (METADATA_ID) ;
+
+CREATE  INDEX IX_PAGE_MENU_METADATA_1 ON PAGE_MENU_METADATA (MENU_ID);
+
+
+-----------------------------------------------------------------------------
+-- FRAGMENT
+-----------------------------------------------------------------------------
+
+CREATE TABLE FRAGMENT
+(
+    FRAGMENT_ID INTEGER NOT NULL,
+    PARENT_ID INTEGER,
+    PAGE_ID INTEGER,
+    NAME VARCHAR(100),
+    TITLE VARCHAR(100),
+    SHORT_TITLE VARCHAR(40),
+    TYPE VARCHAR(40),
+    SKIN VARCHAR(80),
+    DECORATOR VARCHAR(80),
+    STATE VARCHAR(10),
+    PMODE VARCHAR(10),
+    LAYOUT_ROW INTEGER,
+    LAYOUT_COLUMN INTEGER,
+    LAYOUT_SIZES VARCHAR(20),
+    LAYOUT_X REAL,
+    LAYOUT_Y REAL,
+    LAYOUT_Z REAL,
+    LAYOUT_WIDTH REAL,
+    LAYOUT_HEIGHT REAL,
+    EXT_PROP_NAME_1 VARCHAR(40),
+    EXT_PROP_VALUE_1 VARCHAR(80),
+    EXT_PROP_NAME_2 VARCHAR(40),
+    EXT_PROP_VALUE_2 VARCHAR(80),
+    OWNER_PRINCIPAL VARCHAR(40)
+);
+
+ALTER TABLE FRAGMENT
+    ADD PRIMARY KEY (FRAGMENT_ID) ;
+
+CREATE  INDEX IX_FRAGMENT_1 ON FRAGMENT (PARENT_ID);
+CREATE  INDEX UN_FRAGMENT_1 ON FRAGMENT (PAGE_ID);
+
+
+-----------------------------------------------------------------------------
+-- FRAGMENT_CONSTRAINT
+-----------------------------------------------------------------------------
+
+CREATE TABLE FRAGMENT_CONSTRAINT
+(
+    CONSTRAINT_ID INTEGER NOT NULL,
+    FRAGMENT_ID INTEGER NOT NULL,
+    APPLY_ORDER INTEGER NOT NULL,
+    USER_PRINCIPALS_ACL VARCHAR(120),
+    ROLE_PRINCIPALS_ACL VARCHAR(120),
+    GROUP_PRINCIPALS_ACL VARCHAR(120),
+    PERMISSIONS_ACL VARCHAR(120)
+);
+
+ALTER TABLE FRAGMENT_CONSTRAINT
+    ADD PRIMARY KEY (CONSTRAINT_ID) ;
+
+CREATE  INDEX IX_FRAGMENT_CONSTRAINT_1 ON FRAGMENT_CONSTRAINT (FRAGMENT_ID);
+
+
+-----------------------------------------------------------------------------
+-- FRAGMENT_CONSTRAINTS_REF
+-----------------------------------------------------------------------------
+
+CREATE TABLE FRAGMENT_CONSTRAINTS_REF
+(
+    CONSTRAINTS_REF_ID INTEGER NOT NULL,
+    FRAGMENT_ID INTEGER NOT NULL,
+    APPLY_ORDER INTEGER NOT NULL,
+    NAME VARCHAR(40) NOT NULL,
+    UNIQUE (FRAGMENT_ID, NAME)
+);
+
+ALTER TABLE FRAGMENT_CONSTRAINTS_REF
+    ADD PRIMARY KEY (CONSTRAINTS_REF_ID) ;
+
+CREATE  INDEX IX_FRAGMENT_CONSTRAINTS_REF_1 ON FRAGMENT_CONSTRAINTS_REF (FRAGMENT_ID);
+
+
+-----------------------------------------------------------------------------
+-- FRAGMENT_PREF
+-----------------------------------------------------------------------------
+
+CREATE TABLE FRAGMENT_PREF
+(
+    PREF_ID INTEGER NOT NULL,
+    FRAGMENT_ID INTEGER NOT NULL,
+    NAME VARCHAR(40) NOT NULL,
+    IS_READ_ONLY SMALLINT NOT NULL,
+    UNIQUE (FRAGMENT_ID, NAME)
+);
+
+ALTER TABLE FRAGMENT_PREF
+    ADD PRIMARY KEY (PREF_ID) ;
+
+CREATE  INDEX IX_FRAGMENT_PREF_1 ON FRAGMENT_PREF (FRAGMENT_ID);
+
+
+-----------------------------------------------------------------------------
+-- FRAGMENT_PREF_VALUE
+-----------------------------------------------------------------------------
+
+CREATE TABLE FRAGMENT_PREF_VALUE
+(
+    PREF_VALUE_ID INTEGER NOT NULL,
+    PREF_ID INTEGER NOT NULL,
+    VALUE_ORDER INTEGER NOT NULL,
+    VALUE VARCHAR(100) NOT NULL
+);
+
+ALTER TABLE FRAGMENT_PREF_VALUE
+    ADD PRIMARY KEY (PREF_VALUE_ID) ;
+
+CREATE  INDEX IX_FRAGMENT_PREF_VALUE_1 ON FRAGMENT_PREF_VALUE (PREF_ID);
+
+
+-----------------------------------------------------------------------------
+-- LINK
+-----------------------------------------------------------------------------
+
+CREATE TABLE LINK
+(
+    LINK_ID INTEGER NOT NULL,
+    PARENT_ID INTEGER NOT NULL,
+    PATH VARCHAR(240) NOT NULL,
+    NAME VARCHAR(80) NOT NULL,
+    VERSION VARCHAR(40),
+    TITLE VARCHAR(100),
+    SHORT_TITLE VARCHAR(40),
+    IS_HIDDEN SMALLINT NOT NULL,
+    SKIN VARCHAR(80),
+    TARGET VARCHAR(80),
+    URL VARCHAR(255),
+    SUBSITE VARCHAR(40),
+    USER_PRINCIPAL VARCHAR(40),
+    ROLE_PRINCIPAL VARCHAR(40),
+    GROUP_PRINCIPAL VARCHAR(40),
+    MEDIATYPE VARCHAR(15),
+    LOCALE VARCHAR(20),
+    EXT_ATTR_NAME VARCHAR(15),
+    EXT_ATTR_VALUE VARCHAR(40),
+    OWNER_PRINCIPAL VARCHAR(40),
+    UNIQUE (PATH)
+);
+
+ALTER TABLE LINK
+    ADD PRIMARY KEY (LINK_ID) ;
+
+CREATE  INDEX IX_LINK_1 ON LINK (PARENT_ID);
+
+
+-----------------------------------------------------------------------------
+-- LINK_METADATA
+-----------------------------------------------------------------------------
+
+CREATE TABLE LINK_METADATA
+(
+    METADATA_ID INTEGER NOT NULL,
+    LINK_ID INTEGER NOT NULL,
+    NAME VARCHAR(15) NOT NULL,
+    LOCALE VARCHAR(20) NOT NULL,
+    VALUE VARCHAR(100) NOT NULL,
+    UNIQUE (LINK_ID, NAME, LOCALE, VALUE)
+);
+
+ALTER TABLE LINK_METADATA
+    ADD PRIMARY KEY (METADATA_ID) ;
+
+CREATE  INDEX IX_LINK_METADATA_1 ON LINK_METADATA (LINK_ID);
+
+
+-----------------------------------------------------------------------------
+-- LINK_CONSTRAINT
+-----------------------------------------------------------------------------
+
+CREATE TABLE LINK_CONSTRAINT
+(
+    CONSTRAINT_ID INTEGER NOT NULL,
+    LINK_ID INTEGER NOT NULL,
+    APPLY_ORDER INTEGER NOT NULL,
+    USER_PRINCIPALS_ACL VARCHAR(120),
+    ROLE_PRINCIPALS_ACL VARCHAR(120),
+    GROUP_PRINCIPALS_ACL VARCHAR(120),
+    PERMISSIONS_ACL VARCHAR(120)
+);
+
+ALTER TABLE LINK_CONSTRAINT
+    ADD PRIMARY KEY (CONSTRAINT_ID) ;
+
+CREATE  INDEX IX_LINK_CONSTRAINT_1 ON LINK_CONSTRAINT (LINK_ID);
+
+
+-----------------------------------------------------------------------------
+-- LINK_CONSTRAINTS_REF
+-----------------------------------------------------------------------------
+
+CREATE TABLE LINK_CONSTRAINTS_REF
+(
+    CONSTRAINTS_REF_ID INTEGER NOT NULL,
+    LINK_ID INTEGER NOT NULL,
+    APPLY_ORDER INTEGER NOT NULL,
+    NAME VARCHAR(40) NOT NULL,
+    UNIQUE (LINK_ID, NAME)
+);
+
+ALTER TABLE LINK_CONSTRAINTS_REF
+    ADD PRIMARY KEY (CONSTRAINTS_REF_ID) ;
+
+CREATE  INDEX IX_LINK_CONSTRAINTS_REF_1 ON LINK_CONSTRAINTS_REF (LINK_ID);
+
+
+-----------------------------------------------------------------------------
+-- PAGE_SECURITY
+-----------------------------------------------------------------------------
+
+CREATE TABLE PAGE_SECURITY
+(
+    PAGE_SECURITY_ID INTEGER NOT NULL,
+    PARENT_ID INTEGER NOT NULL,
+    PATH VARCHAR(240) NOT NULL,
+    NAME VARCHAR(80) NOT NULL,
+    VERSION VARCHAR(40),
+    SUBSITE VARCHAR(40),
+    USER_PRINCIPAL VARCHAR(40),
+    ROLE_PRINCIPAL VARCHAR(40),
+    GROUP_PRINCIPAL VARCHAR(40),
+    MEDIATYPE VARCHAR(15),
+    LOCALE VARCHAR(20),
+    EXT_ATTR_NAME VARCHAR(15),
+    EXT_ATTR_VALUE VARCHAR(40),
+    UNIQUE (PARENT_ID),
+    UNIQUE (PATH)
+);
+
+ALTER TABLE PAGE_SECURITY
+    ADD PRIMARY KEY (PAGE_SECURITY_ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- PAGE_SEC_CONSTRAINTS_DEF
+-----------------------------------------------------------------------------
+
+CREATE TABLE PAGE_SEC_CONSTRAINTS_DEF
+(
+    CONSTRAINTS_DEF_ID INTEGER NOT NULL,
+    PAGE_SECURITY_ID INTEGER NOT NULL,
+    NAME VARCHAR(40) NOT NULL,
+    UNIQUE (PAGE_SECURITY_ID, NAME)
+);
+
+ALTER TABLE PAGE_SEC_CONSTRAINTS_DEF
+    ADD PRIMARY KEY (CONSTRAINTS_DEF_ID) ;
+
+CREATE  INDEX IX_PAGE_SEC_CONSTRAINTS_DEF_1 ON PAGE_SEC_CONSTRAINTS_DEF (PAGE_SECURITY_ID);
+
+
+-----------------------------------------------------------------------------
+-- PAGE_SEC_CONSTRAINT_DEF
+-----------------------------------------------------------------------------
+
+CREATE TABLE PAGE_SEC_CONSTRAINT_DEF
+(
+    CONSTRAINT_DEF_ID INTEGER NOT NULL,
+    CONSTRAINTS_DEF_ID INTEGER NOT NULL,
+    APPLY_ORDER INTEGER NOT NULL,
+    USER_PRINCIPALS_ACL VARCHAR(120),
+    ROLE_PRINCIPALS_ACL VARCHAR(120),
+    GROUP_PRINCIPALS_ACL VARCHAR(120),
+    PERMISSIONS_ACL VARCHAR(120)
+);
+
+ALTER TABLE PAGE_SEC_CONSTRAINT_DEF
+    ADD PRIMARY KEY (CONSTRAINT_DEF_ID) ;
+
+CREATE  INDEX IX_PAGE_SEC_CONSTRAINT_DEF_1 ON PAGE_SEC_CONSTRAINT_DEF (CONSTRAINTS_DEF_ID);
+
+
+-----------------------------------------------------------------------------
+-- PAGE_SEC_CONSTRAINTS_REF
+-----------------------------------------------------------------------------
+
+CREATE TABLE PAGE_SEC_CONSTRAINTS_REF
+(
+    CONSTRAINTS_REF_ID INTEGER NOT NULL,
+    PAGE_SECURITY_ID INTEGER NOT NULL,
+    APPLY_ORDER INTEGER NOT NULL,
+    NAME VARCHAR(40) NOT NULL,
+    UNIQUE (PAGE_SECURITY_ID, NAME)
+);
+
+ALTER TABLE PAGE_SEC_CONSTRAINTS_REF
+    ADD PRIMARY KEY (CONSTRAINTS_REF_ID) ;
+
+CREATE  INDEX IX_PAGE_SEC_CONSTRAINTS_REF_1 ON PAGE_SEC_CONSTRAINTS_REF (PAGE_SECURITY_ID);
+
+
+-----------------------------------------------------------------------------
+-- PROFILING_RULE
+-----------------------------------------------------------------------------
+
+CREATE TABLE PROFILING_RULE
+(
+    RULE_ID VARCHAR(80) NOT NULL,
+    CLASS_NAME VARCHAR(100) NOT NULL,
+    TITLE VARCHAR(100)
+);
+
+ALTER TABLE PROFILING_RULE
+    ADD PRIMARY KEY (RULE_ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- RULE_CRITERION
+-----------------------------------------------------------------------------
+
+CREATE TABLE RULE_CRITERION
+(
+    CRITERION_ID VARCHAR(80) NOT NULL,
+    RULE_ID VARCHAR(80) NOT NULL,
+    FALLBACK_ORDER INTEGER NOT NULL,
+    REQUEST_TYPE VARCHAR(40) NOT NULL,
+    NAME VARCHAR(80) NOT NULL,
+    COLUMN_VALUE VARCHAR(128),
+    FALLBACK_TYPE INTEGER default 1
+);
+
+ALTER TABLE RULE_CRITERION
+    ADD PRIMARY KEY (CRITERION_ID) ;
+
+CREATE  INDEX IX_RULE_CRITERION_1 ON RULE_CRITERION (RULE_ID, FALLBACK_ORDER);
+
+
+-----------------------------------------------------------------------------
+-- PRINCIPAL_RULE_ASSOC
+-----------------------------------------------------------------------------
+
+CREATE TABLE PRINCIPAL_RULE_ASSOC
+(
+    PRINCIPAL_NAME VARCHAR(80) NOT NULL,
+    LOCATOR_NAME VARCHAR(80) NOT NULL,
+    RULE_ID VARCHAR(80) NOT NULL
+);
+
+ALTER TABLE PRINCIPAL_RULE_ASSOC
+    ADD PRIMARY KEY (PRINCIPAL_NAME,LOCATOR_NAME) ;
+
+
+
+-----------------------------------------------------------------------------
+-- PROFILE_PAGE_ASSOC
+-----------------------------------------------------------------------------
+
+CREATE TABLE PROFILE_PAGE_ASSOC
+(
+    LOCATOR_HASH VARCHAR(40) NOT NULL,
+    PAGE_ID VARCHAR(80) NOT NULL,
+    UNIQUE (LOCATOR_HASH, PAGE_ID)
+);
+
+
+
+
+-----------------------------------------------------------------------------
+-- CLUBS
+-----------------------------------------------------------------------------
+
+CREATE TABLE CLUBS
+(
+    NAME VARCHAR(80) NOT NULL,
+    COUNTRY VARCHAR(40) NOT NULL,
+    CITY VARCHAR(40) NOT NULL,
+    STADIUM VARCHAR(80) NOT NULL,
+    CAPACITY INTEGER,
+    FOUNDED INTEGER,
+    PITCH VARCHAR(40),
+    NICKNAME VARCHAR(40)
+);
+
+ALTER TABLE CLUBS
+    ADD PRIMARY KEY (NAME) ;
+
+
+ALTER TABLE FOLDER
+    FOREIGN KEY FK_FOLDER_1 (PARENT_ID)
+    REFERENCES FOLDER (FOLDER_ID)
+;
+
+
+ALTER TABLE FOLDER_METADATA
+    FOREIGN KEY FK_FOLDER_METADATA_1 (FOLDER_ID)
+    REFERENCES FOLDER (FOLDER_ID)
+;
+
+
+ALTER TABLE FOLDER_CONSTRAINT
+    FOREIGN KEY FK_FOLDER_CONSTRAINT_1 (FOLDER_ID)
+    REFERENCES FOLDER (FOLDER_ID)
+;
+
+
+ALTER TABLE FOLDER_CONSTRAINTS_REF
+    FOREIGN KEY FK_FOLDER_CONSTRAINTS_REF_1 (FOLDER_ID)
+    REFERENCES FOLDER (FOLDER_ID)
+;
+
+
+ALTER TABLE FOLDER_ORDER
+    FOREIGN KEY FK_FOLDER_ORDER_1 (FOLDER_ID)
+    REFERENCES FOLDER (FOLDER_ID)
+;
+
+
+ALTER TABLE FOLDER_MENU
+    FOREIGN KEY FK_FOLDER_MENU_1 (PARENT_ID)
+    REFERENCES FOLDER_MENU (MENU_ID)
+;
+
+ALTER TABLE FOLDER_MENU
+    FOREIGN KEY FK_FOLDER_MENU_2 (FOLDER_ID)
+    REFERENCES FOLDER (FOLDER_ID)
+;
+
+
+ALTER TABLE FOLDER_MENU_METADATA
+    FOREIGN KEY FK_FOLDER_MENU_METADATA_1 (MENU_ID)
+    REFERENCES FOLDER_MENU (MENU_ID)
+;
+
+
+ALTER TABLE PAGE
+    FOREIGN KEY FK_PAGE_1 (PARENT_ID)
+    REFERENCES FOLDER (FOLDER_ID)
+;
+
+
+ALTER TABLE PAGE_METADATA
+    FOREIGN KEY FK_PAGE_METADATA_1 (PAGE_ID)
+    REFERENCES PAGE (PAGE_ID)
+;
+
+
+ALTER TABLE PAGE_CONSTRAINT
+    FOREIGN KEY FK_PAGE_CONSTRAINT_1 (PAGE_ID)
+    REFERENCES PAGE (PAGE_ID)
+;
+
+
+ALTER TABLE PAGE_CONSTRAINTS_REF
+    FOREIGN KEY FK_PAGE_CONSTRAINTS_REF_1 (PAGE_ID)
+    REFERENCES PAGE (PAGE_ID)
+;
+
+
+ALTER TABLE PAGE_MENU
+    FOREIGN KEY FK_PAGE_MENU_1 (PARENT_ID)
+    REFERENCES PAGE_MENU (MENU_ID)
+;
+
+ALTER TABLE PAGE_MENU
+    FOREIGN KEY PM_M_FK_PAGE_ID_PAGE (PAGE_ID)
+    REFERENCES PAGE (PAGE_ID)
+;
+
+
+ALTER TABLE PAGE_MENU_METADATA
+    FOREIGN KEY FK_PAGE_MENU_METADATA_1 (MENU_ID)
+    REFERENCES PAGE_MENU (MENU_ID)
+;
+
+
+ALTER TABLE FRAGMENT
+    FOREIGN KEY FK_FRAGMENT_1 (PARENT_ID)
+    REFERENCES FRAGMENT (FRAGMENT_ID)
+;
+
+ALTER TABLE FRAGMENT
+    FOREIGN KEY FK_FRAGMENT_2 (PAGE_ID)
+    REFERENCES PAGE (PAGE_ID)
+;
+
+
+ALTER TABLE FRAGMENT_CONSTRAINT
+    FOREIGN KEY FK_FRAGMENT_CONSTRAINT_1 (FRAGMENT_ID)
+    REFERENCES FRAGMENT (FRAGMENT_ID)
+;
+
+
+ALTER TABLE FRAGMENT_CONSTRAINTS_REF
+    FOREIGN KEY FK_FRAGMENT_CONSTRAINTS_REF_1 (FRAGMENT_ID)
+    REFERENCES FRAGMENT (FRAGMENT_ID)
+;
+
+
+ALTER TABLE FRAGMENT_PREF
+    FOREIGN KEY FK_FRAGMENT_PREF_1 (FRAGMENT_ID)
+    REFERENCES FRAGMENT (FRAGMENT_ID)
+;
+
+
+ALTER TABLE FRAGMENT_PREF_VALUE
+    FOREIGN KEY FK_FRAGMENT_PREF_VALUE_1 (PREF_ID)
+    REFERENCES FRAGMENT_PREF (PREF_ID)
+;
+
+
+ALTER TABLE LINK
+    FOREIGN KEY FK_LINK_1 (PARENT_ID)
+    REFERENCES FOLDER (FOLDER_ID)
+;
+
+
+ALTER TABLE LINK_METADATA
+    FOREIGN KEY FK_LINK_METADATA_1 (LINK_ID)
+    REFERENCES LINK (LINK_ID)
+;
+
+
+ALTER TABLE LINK_CONSTRAINT
+    FOREIGN KEY FK_LINK_CONSTRAINT_1 (LINK_ID)
+    REFERENCES LINK (LINK_ID)
+;
+
+
+ALTER TABLE LINK_CONSTRAINTS_REF
+    FOREIGN KEY FK_LINK_CONSTRAINTS_REF_1 (LINK_ID)
+    REFERENCES LINK (LINK_ID)
+;
+
+
+ALTER TABLE PAGE_SECURITY
+    FOREIGN KEY FK_PAGE_SECURITY_1 (PARENT_ID)
+    REFERENCES FOLDER (FOLDER_ID)
+;
+
+
+ALTER TABLE PAGE_SEC_CONSTRAINTS_DEF
+    FOREIGN KEY FK_PAGE_SEC_CONSTRAINTS_DEF_1 (PAGE_SECURITY_ID)
+    REFERENCES PAGE_SECURITY (PAGE_SECURITY_ID)
+;
+
+
+ALTER TABLE PAGE_SEC_CONSTRAINT_DEF
+    FOREIGN KEY FK_PAGE_SEC_CONSTRAINT_DEF_1 (CONSTRAINTS_DEF_ID)
+    REFERENCES PAGE_SEC_CONSTRAINTS_DEF (CONSTRAINTS_DEF_ID)
+;
+
+
+ALTER TABLE PAGE_SEC_CONSTRAINTS_REF
+    FOREIGN KEY FK_PAGE_SEC_CONSTRAINTS_REF_1 (PAGE_SECURITY_ID)
+    REFERENCES PAGE_SECURITY (PAGE_SECURITY_ID)
+;
+
+
+
+ALTER TABLE RULE_CRITERION
+    FOREIGN KEY FK_RULE_CRITERION_1 (RULE_ID)
+    REFERENCES PROFILING_RULE (RULE_ID)
+;
+
+
+
+
+

Propchange: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/phase2-schema.sql
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/phase2-schema.sql
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/phase2-schema.sql
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/phase3ojb-schema.sql
URL: http://svn.apache.org/viewvc/geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/phase3ojb-schema.sql?rev=588248&view=auto
==============================================================================
--- geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/phase3ojb-schema.sql (added)
+++ geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/phase3ojb-schema.sql Thu Oct 25 08:16:02 2007
@@ -0,0 +1,138 @@
+
+-----------------------------------------------------------------------------
+-- OJB_HL_SEQ
+-----------------------------------------------------------------------------
+
+CREATE TABLE OJB_HL_SEQ
+(
+    TABLENAME VARCHAR(175) NOT NULL,
+    FIELDNAME VARCHAR(70) NOT NULL,
+    MAX_KEY INTEGER,
+    GRAB_SIZE INTEGER,
+    VERSION INTEGER
+);
+
+ALTER TABLE OJB_HL_SEQ
+    ADD PRIMARY KEY (TABLENAME,FIELDNAME) ;
+
+
+
+-----------------------------------------------------------------------------
+-- OJB_LOCKENTRY
+-----------------------------------------------------------------------------
+
+CREATE TABLE OJB_LOCKENTRY
+(
+    OID_ VARCHAR(250) NOT NULL,
+    TX_ID VARCHAR(50) NOT NULL,
+    TIMESTAMP_ TIMESTAMP,
+    ISOLATIONLEVEL INTEGER,
+    LOCKTYPE INTEGER
+);
+
+ALTER TABLE OJB_LOCKENTRY
+    ADD PRIMARY KEY (OID_,TX_ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- OJB_NRM
+-----------------------------------------------------------------------------
+
+CREATE TABLE OJB_NRM
+(
+    NAME VARCHAR(250) NOT NULL,
+    OID_ LONG BYTE
+);
+
+ALTER TABLE OJB_NRM
+    ADD PRIMARY KEY (NAME) ;
+
+
+
+-----------------------------------------------------------------------------
+-- OJB_DLIST
+-----------------------------------------------------------------------------
+
+CREATE TABLE OJB_DLIST
+(
+    ID INTEGER NOT NULL,
+    SIZE_ INTEGER
+);
+
+ALTER TABLE OJB_DLIST
+    ADD PRIMARY KEY (ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- OJB_DLIST_ENTRIES
+-----------------------------------------------------------------------------
+
+CREATE TABLE OJB_DLIST_ENTRIES
+(
+    ID INTEGER NOT NULL,
+    DLIST_ID INTEGER,
+    POSITION_ INTEGER,
+    OID_ LONG BYTE
+);
+
+ALTER TABLE OJB_DLIST_ENTRIES
+    ADD PRIMARY KEY (ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- OJB_DSET
+-----------------------------------------------------------------------------
+
+CREATE TABLE OJB_DSET
+(
+    ID INTEGER NOT NULL,
+    SIZE_ INTEGER
+);
+
+ALTER TABLE OJB_DSET
+    ADD PRIMARY KEY (ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- OJB_DSET_ENTRIES
+-----------------------------------------------------------------------------
+
+CREATE TABLE OJB_DSET_ENTRIES
+(
+    ID INTEGER NOT NULL,
+    DLIST_ID INTEGER,
+    POSITION_ INTEGER,
+    OID_ LONG BYTE
+);
+
+ALTER TABLE OJB_DSET_ENTRIES
+    ADD PRIMARY KEY (ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- OJB_DMAP
+-----------------------------------------------------------------------------
+
+CREATE TABLE OJB_DMAP
+(
+    ID INTEGER NOT NULL,
+    SIZE_ INTEGER
+);
+
+ALTER TABLE OJB_DMAP
+    ADD PRIMARY KEY (ID) ;
+
+
+
+
+
+
+
+
+
+

Propchange: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/phase3ojb-schema.sql
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/phase3ojb-schema.sql
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/phase3ojb-schema.sql
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/prefs-schema.sql
URL: http://svn.apache.org/viewvc/geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/prefs-schema.sql?rev=588248&view=auto
==============================================================================
--- geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/prefs-schema.sql (added)
+++ geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/prefs-schema.sql Thu Oct 25 08:16:02 2007
@@ -0,0 +1,46 @@
+
+-----------------------------------------------------------------------------
+-- PREFS_PROPERTY_VALUE
+-----------------------------------------------------------------------------
+
+CREATE TABLE PREFS_PROPERTY_VALUE
+(
+    PROPERTY_VALUE_ID INTEGER NOT NULL,
+    NODE_ID INTEGER,
+    PROPERTY_NAME VARCHAR(100),
+    PROPERTY_VALUE VARCHAR(254),
+    CREATION_DATE TIMESTAMP,
+    MODIFIED_DATE TIMESTAMP
+);
+
+ALTER TABLE PREFS_PROPERTY_VALUE
+    ADD PRIMARY KEY (PROPERTY_VALUE_ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- PREFS_NODE
+-----------------------------------------------------------------------------
+
+CREATE TABLE PREFS_NODE
+(
+    NODE_ID INTEGER NOT NULL,
+    PARENT_NODE_ID INTEGER,
+    NODE_NAME VARCHAR(100),
+    NODE_TYPE SMALLINT,
+    FULL_PATH VARCHAR(254),
+    CREATION_DATE TIMESTAMP,
+    MODIFIED_DATE TIMESTAMP
+);
+
+ALTER TABLE PREFS_NODE
+    ADD PRIMARY KEY (NODE_ID) ;
+
+
+
+ALTER TABLE PREFS_NODE
+    FOREIGN KEY FK_PREFS_NODE_1 (PARENT_NODE_ID)
+    REFERENCES PREFS_NODE (NODE_ID)
+;
+
+

Propchange: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/prefs-schema.sql
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/prefs-schema.sql
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/prefs-schema.sql
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/registry-schema.sql
URL: http://svn.apache.org/viewvc/geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/registry-schema.sql?rev=588248&view=auto
==============================================================================
--- geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/registry-schema.sql (added)
+++ geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/registry-schema.sql Thu Oct 25 08:16:02 2007
@@ -0,0 +1,372 @@
+
+-----------------------------------------------------------------------------
+-- PORTLET_DEFINITION
+-----------------------------------------------------------------------------
+
+CREATE TABLE PORTLET_DEFINITION
+(
+    ID INTEGER NOT NULL,
+    NAME VARCHAR(80),
+    CLASS_NAME VARCHAR(255),
+    APPLICATION_ID INTEGER NOT NULL,
+    PORTLET_IDENTIFIER VARCHAR(80),
+    EXPIRATION_CACHE VARCHAR(30),
+    RESOURCE_BUNDLE VARCHAR(255),
+    PREFERENCE_VALIDATOR VARCHAR(255),
+    SECURITY_REF VARCHAR(40)
+);
+
+ALTER TABLE PORTLET_DEFINITION
+    ADD PRIMARY KEY (ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- PORTLET_APPLICATION
+-----------------------------------------------------------------------------
+
+CREATE TABLE PORTLET_APPLICATION
+(
+    APPLICATION_ID INTEGER NOT NULL,
+    APP_NAME VARCHAR(80) NOT NULL,
+    APP_IDENTIFIER VARCHAR(80),
+    VERSION VARCHAR(80),
+    APP_TYPE INTEGER,
+    CHECKSUM VARCHAR(80),
+    DESCRIPTION VARCHAR(80),
+    WEB_APP_ID INTEGER NOT NULL,
+    SECURITY_REF VARCHAR(40),
+    UNIQUE (APP_NAME)
+);
+
+ALTER TABLE PORTLET_APPLICATION
+    ADD PRIMARY KEY (APPLICATION_ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- WEB_APPLICATION
+-----------------------------------------------------------------------------
+
+CREATE TABLE WEB_APPLICATION
+(
+    ID INTEGER NOT NULL,
+    CONTEXT_ROOT VARCHAR(255) NOT NULL
+);
+
+ALTER TABLE WEB_APPLICATION
+    ADD PRIMARY KEY (ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- PA_METADATA_FIELDS
+-----------------------------------------------------------------------------
+
+CREATE TABLE PA_METADATA_FIELDS
+(
+    ID INTEGER NOT NULL,
+    OBJECT_ID INTEGER NOT NULL,
+    COLUMN_VALUE LONG VARCHAR NOT NULL,
+    NAME VARCHAR(100) NOT NULL,
+    LOCALE_STRING VARCHAR(50) NOT NULL
+);
+
+ALTER TABLE PA_METADATA_FIELDS
+    ADD PRIMARY KEY (ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- PD_METADATA_FIELDS
+-----------------------------------------------------------------------------
+
+CREATE TABLE PD_METADATA_FIELDS
+(
+    ID INTEGER NOT NULL,
+    OBJECT_ID INTEGER NOT NULL,
+    COLUMN_VALUE LONG VARCHAR NOT NULL,
+    NAME VARCHAR(100) NOT NULL,
+    LOCALE_STRING VARCHAR(50) NOT NULL
+);
+
+ALTER TABLE PD_METADATA_FIELDS
+    ADD PRIMARY KEY (ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- LANGUAGE
+-----------------------------------------------------------------------------
+
+CREATE TABLE LANGUAGE
+(
+    ID INTEGER NOT NULL,
+    PORTLET_ID INTEGER NOT NULL,
+    TITLE VARCHAR(100),
+    SHORT_TITLE VARCHAR(100),
+    LOCALE_STRING VARCHAR(50) NOT NULL,
+    KEYWORDS LONG VARCHAR
+);
+
+ALTER TABLE LANGUAGE
+    ADD PRIMARY KEY (ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- PORTLET_CONTENT_TYPE
+-----------------------------------------------------------------------------
+
+CREATE TABLE PORTLET_CONTENT_TYPE
+(
+    CONTENT_TYPE_ID INTEGER NOT NULL,
+    PORTLET_ID INTEGER NOT NULL,
+    CONTENT_TYPE VARCHAR(30) NOT NULL,
+    MODES LONG VARCHAR
+);
+
+ALTER TABLE PORTLET_CONTENT_TYPE
+    ADD PRIMARY KEY (CONTENT_TYPE_ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- PARAMETER
+-----------------------------------------------------------------------------
+
+CREATE TABLE PARAMETER
+(
+    PARAMETER_ID INTEGER NOT NULL,
+    PARENT_ID INTEGER NOT NULL,
+    CLASS_NAME VARCHAR(255) NOT NULL,
+    NAME VARCHAR(80) NOT NULL,
+    PARAMETER_VALUE LONG VARCHAR NOT NULL
+);
+
+ALTER TABLE PARAMETER
+    ADD PRIMARY KEY (PARAMETER_ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- PORTLET_ENTITY
+-----------------------------------------------------------------------------
+
+CREATE TABLE PORTLET_ENTITY
+(
+    PEID INTEGER NOT NULL,
+    ID VARCHAR(255) NOT NULL,
+    APP_NAME VARCHAR(255) NOT NULL,
+    PORTLET_NAME VARCHAR(255) NOT NULL,
+    UNIQUE (ID)
+);
+
+ALTER TABLE PORTLET_ENTITY
+    ADD PRIMARY KEY (PEID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- SECURITY_ROLE_REFERENCE
+-----------------------------------------------------------------------------
+
+CREATE TABLE SECURITY_ROLE_REFERENCE
+(
+    ID INTEGER NOT NULL,
+    PORTLET_DEFINITION_ID INTEGER NOT NULL,
+    ROLE_NAME VARCHAR(150) NOT NULL,
+    ROLE_LINK VARCHAR(150)
+);
+
+ALTER TABLE SECURITY_ROLE_REFERENCE
+    ADD PRIMARY KEY (ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- SECURITY_ROLE
+-----------------------------------------------------------------------------
+
+CREATE TABLE SECURITY_ROLE
+(
+    ID INTEGER NOT NULL,
+    WEB_APPLICATION_ID INTEGER NOT NULL,
+    ROLE_NAME VARCHAR(150) NOT NULL,
+    DESCRIPTION VARCHAR(150)
+);
+
+ALTER TABLE SECURITY_ROLE
+    ADD PRIMARY KEY (ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- USER_ATTRIBUTE_REF
+-----------------------------------------------------------------------------
+
+CREATE TABLE USER_ATTRIBUTE_REF
+(
+    ID INTEGER NOT NULL,
+    APPLICATION_ID INTEGER NOT NULL,
+    NAME VARCHAR(150),
+    NAME_LINK VARCHAR(150)
+);
+
+ALTER TABLE USER_ATTRIBUTE_REF
+    ADD PRIMARY KEY (ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- USER_ATTRIBUTE
+-----------------------------------------------------------------------------
+
+CREATE TABLE USER_ATTRIBUTE
+(
+    ID INTEGER NOT NULL,
+    APPLICATION_ID INTEGER NOT NULL,
+    NAME VARCHAR(150),
+    DESCRIPTION VARCHAR(150)
+);
+
+ALTER TABLE USER_ATTRIBUTE
+    ADD PRIMARY KEY (ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- JETSPEED_SERVICE
+-----------------------------------------------------------------------------
+
+CREATE TABLE JETSPEED_SERVICE
+(
+    ID INTEGER NOT NULL,
+    APPLICATION_ID INTEGER NOT NULL,
+    NAME VARCHAR(150)
+);
+
+ALTER TABLE JETSPEED_SERVICE
+    ADD PRIMARY KEY (ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- LOCALIZED_DESCRIPTION
+-----------------------------------------------------------------------------
+
+CREATE TABLE LOCALIZED_DESCRIPTION
+(
+    ID INTEGER NOT NULL,
+    OBJECT_ID INTEGER NOT NULL,
+    CLASS_NAME VARCHAR(255) NOT NULL,
+    DESCRIPTION LONG VARCHAR NOT NULL,
+    LOCALE_STRING VARCHAR(50) NOT NULL
+);
+
+ALTER TABLE LOCALIZED_DESCRIPTION
+    ADD PRIMARY KEY (ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- LOCALIZED_DISPLAY_NAME
+-----------------------------------------------------------------------------
+
+CREATE TABLE LOCALIZED_DISPLAY_NAME
+(
+    ID INTEGER NOT NULL,
+    OBJECT_ID INTEGER NOT NULL,
+    CLASS_NAME VARCHAR(255),
+    DISPLAY_NAME LONG VARCHAR NOT NULL,
+    LOCALE_STRING VARCHAR(50) NOT NULL
+);
+
+ALTER TABLE LOCALIZED_DISPLAY_NAME
+    ADD PRIMARY KEY (ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- CUSTOM_PORTLET_MODE
+-----------------------------------------------------------------------------
+
+CREATE TABLE CUSTOM_PORTLET_MODE
+(
+    ID INTEGER NOT NULL,
+    APPLICATION_ID INTEGER NOT NULL,
+    CUSTOM_NAME VARCHAR(150) NOT NULL,
+    MAPPED_NAME VARCHAR(150),
+    DESCRIPTION LONG VARCHAR
+);
+
+ALTER TABLE CUSTOM_PORTLET_MODE
+    ADD PRIMARY KEY (ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- CUSTOM_WINDOW_STATE
+-----------------------------------------------------------------------------
+
+CREATE TABLE CUSTOM_WINDOW_STATE
+(
+    ID INTEGER NOT NULL,
+    APPLICATION_ID INTEGER NOT NULL,
+    CUSTOM_NAME VARCHAR(150) NOT NULL,
+    MAPPED_NAME VARCHAR(150),
+    DESCRIPTION LONG VARCHAR
+);
+
+ALTER TABLE CUSTOM_WINDOW_STATE
+    ADD PRIMARY KEY (ID) ;
+
+
+
+
+
+ALTER TABLE PA_METADATA_FIELDS
+    FOREIGN KEY FK_PA_METADATA_FIELDS_1 (OBJECT_ID)
+    REFERENCES PORTLET_APPLICATION (APPLICATION_ID)
+;
+
+
+ALTER TABLE PD_METADATA_FIELDS
+    FOREIGN KEY FK_PD_METADATA_FIELDS_1 (OBJECT_ID)
+    REFERENCES PORTLET_DEFINITION (ID)
+;
+
+
+
+
+
+
+
+
+ALTER TABLE USER_ATTRIBUTE_REF
+    FOREIGN KEY FK_USER_ATTRIBUTE_REF_1 (APPLICATION_ID)
+    REFERENCES PORTLET_APPLICATION (APPLICATION_ID)
+;
+
+
+ALTER TABLE USER_ATTRIBUTE
+    FOREIGN KEY FK_USER_ATTRIBUTE_1 (APPLICATION_ID)
+    REFERENCES PORTLET_APPLICATION (APPLICATION_ID)
+;
+
+
+
+
+
+ALTER TABLE CUSTOM_PORTLET_MODE
+    FOREIGN KEY FK_CUSTOM_PORTLET_MODE_1 (APPLICATION_ID)
+    REFERENCES PORTLET_APPLICATION (APPLICATION_ID)
+;
+
+
+ALTER TABLE CUSTOM_WINDOW_STATE
+    FOREIGN KEY FK_CUSTOM_WINDOW_STATE_1 (APPLICATION_ID)
+    REFERENCES PORTLET_APPLICATION (APPLICATION_ID)
+;
+
+

Propchange: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/registry-schema.sql
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/registry-schema.sql
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/registry-schema.sql
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/security-schema.sql
URL: http://svn.apache.org/viewvc/geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/security-schema.sql?rev=588248&view=auto
==============================================================================
--- geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/security-schema.sql (added)
+++ geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/security-schema.sql Thu Oct 25 08:16:02 2007
@@ -0,0 +1,326 @@
+
+-----------------------------------------------------------------------------
+-- SECURITY_PRINCIPAL
+-----------------------------------------------------------------------------
+
+CREATE TABLE SECURITY_PRINCIPAL
+(
+    PRINCIPAL_ID INTEGER NOT NULL,
+    CLASSNAME VARCHAR(254) NOT NULL,
+    IS_MAPPING_ONLY SMALLINT NOT NULL,
+    IS_ENABLED SMALLINT NOT NULL,
+    FULL_PATH VARCHAR(254) NOT NULL,
+    CREATION_DATE TIMESTAMP NOT NULL,
+    MODIFIED_DATE TIMESTAMP NOT NULL,
+    UNIQUE (FULL_PATH)
+);
+
+ALTER TABLE SECURITY_PRINCIPAL
+    ADD PRIMARY KEY (PRINCIPAL_ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- SECURITY_PERMISSION
+-----------------------------------------------------------------------------
+
+CREATE TABLE SECURITY_PERMISSION
+(
+    PERMISSION_ID INTEGER NOT NULL,
+    CLASSNAME VARCHAR(254) NOT NULL,
+    NAME VARCHAR(254) NOT NULL,
+    ACTIONS VARCHAR(254) NOT NULL,
+    CREATION_DATE TIMESTAMP NOT NULL,
+    MODIFIED_DATE TIMESTAMP NOT NULL
+);
+
+ALTER TABLE SECURITY_PERMISSION
+    ADD PRIMARY KEY (PERMISSION_ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- PRINCIPAL_PERMISSION
+-----------------------------------------------------------------------------
+
+CREATE TABLE PRINCIPAL_PERMISSION
+(
+    PRINCIPAL_ID INTEGER NOT NULL,
+    PERMISSION_ID INTEGER NOT NULL
+);
+
+ALTER TABLE PRINCIPAL_PERMISSION
+    ADD PRIMARY KEY (PRINCIPAL_ID,PERMISSION_ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- SECURITY_CREDENTIAL
+-----------------------------------------------------------------------------
+
+CREATE TABLE SECURITY_CREDENTIAL
+(
+    CREDENTIAL_ID INTEGER NOT NULL,
+    PRINCIPAL_ID INTEGER NOT NULL,
+    COLUMN_VALUE VARCHAR(254) NOT NULL,
+    TYPE SMALLINT NOT NULL,
+    CLASSNAME VARCHAR(254),
+    UPDATE_REQUIRED SMALLINT NOT NULL,
+    IS_ENCODED SMALLINT NOT NULL,
+    IS_ENABLED SMALLINT NOT NULL,
+    AUTH_FAILURES SMALLINT NOT NULL,
+    IS_EXPIRED SMALLINT NOT NULL,
+    CREATION_DATE TIMESTAMP NOT NULL,
+    MODIFIED_DATE TIMESTAMP NOT NULL,
+    PREV_AUTH_DATE TIMESTAMP,
+    LAST_AUTH_DATE TIMESTAMP,
+    EXPIRATION_DATE DATE
+);
+
+ALTER TABLE SECURITY_CREDENTIAL
+    ADD PRIMARY KEY (CREDENTIAL_ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- SSO_SITE
+-----------------------------------------------------------------------------
+
+CREATE TABLE SSO_SITE
+(
+    SITE_ID INTEGER NOT NULL,
+    NAME VARCHAR(254) NOT NULL,
+    URL VARCHAR(254) NOT NULL,
+    ALLOW_USER_SET SMALLINT default 0,
+    REQUIRES_CERTIFICATE SMALLINT default 0,
+    CHALLENGE_RESPONSE_AUTH SMALLINT default 0,
+    FORM_AUTH SMALLINT default 0,
+    FORM_USER_FIELD VARCHAR(128),
+    FORM_PWD_FIELD VARCHAR(128),
+    REALM VARCHAR(128),
+    UNIQUE (URL)
+);
+
+ALTER TABLE SSO_SITE
+    ADD PRIMARY KEY (SITE_ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- SSO_COOKIE
+-----------------------------------------------------------------------------
+
+CREATE TABLE SSO_COOKIE
+(
+    COOKIE_ID INTEGER NOT NULL,
+    COOKIE VARCHAR(1024) NOT NULL,
+    CREATE_DATE TIMESTAMP NOT NULL
+);
+
+ALTER TABLE SSO_COOKIE
+    ADD PRIMARY KEY (COOKIE_ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- SSO_SITE_TO_PRINCIPALS
+-----------------------------------------------------------------------------
+
+CREATE TABLE SSO_SITE_TO_PRINCIPALS
+(
+    SITE_ID INTEGER NOT NULL,
+    PRINCIPAL_ID INTEGER NOT NULL
+);
+
+ALTER TABLE SSO_SITE_TO_PRINCIPALS
+    ADD PRIMARY KEY (SITE_ID,PRINCIPAL_ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- SSO_PRINCIPAL_TO_REMOTE
+-----------------------------------------------------------------------------
+
+CREATE TABLE SSO_PRINCIPAL_TO_REMOTE
+(
+    PRINCIPAL_ID INTEGER NOT NULL,
+    REMOTE_PRINCIPAL_ID INTEGER NOT NULL
+);
+
+ALTER TABLE SSO_PRINCIPAL_TO_REMOTE
+    ADD PRIMARY KEY (PRINCIPAL_ID,REMOTE_PRINCIPAL_ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- SSO_SITE_TO_REMOTE
+-----------------------------------------------------------------------------
+
+CREATE TABLE SSO_SITE_TO_REMOTE
+(
+    SITE_ID INTEGER NOT NULL,
+    PRINCIPAL_ID INTEGER NOT NULL
+);
+
+ALTER TABLE SSO_SITE_TO_REMOTE
+    ADD PRIMARY KEY (SITE_ID,PRINCIPAL_ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- SSO_COOKIE_TO_REMOTE
+-----------------------------------------------------------------------------
+
+CREATE TABLE SSO_COOKIE_TO_REMOTE
+(
+    COOKIE_ID INTEGER NOT NULL,
+    REMOTE_PRINCIPAL_ID INTEGER NOT NULL
+);
+
+ALTER TABLE SSO_COOKIE_TO_REMOTE
+    ADD PRIMARY KEY (COOKIE_ID,REMOTE_PRINCIPAL_ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- SECURITY_USER_ROLE
+-----------------------------------------------------------------------------
+
+CREATE TABLE SECURITY_USER_ROLE
+(
+    USER_ID INTEGER NOT NULL,
+    ROLE_ID INTEGER NOT NULL
+);
+
+ALTER TABLE SECURITY_USER_ROLE
+    ADD PRIMARY KEY (USER_ID,ROLE_ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- SECURITY_USER_GROUP
+-----------------------------------------------------------------------------
+
+CREATE TABLE SECURITY_USER_GROUP
+(
+    USER_ID INTEGER NOT NULL,
+    GROUP_ID INTEGER NOT NULL
+);
+
+ALTER TABLE SECURITY_USER_GROUP
+    ADD PRIMARY KEY (USER_ID,GROUP_ID) ;
+
+
+
+-----------------------------------------------------------------------------
+-- SECURITY_GROUP_ROLE
+-----------------------------------------------------------------------------
+
+CREATE TABLE SECURITY_GROUP_ROLE
+(
+    GROUP_ID INTEGER NOT NULL,
+    ROLE_ID INTEGER NOT NULL
+);
+
+ALTER TABLE SECURITY_GROUP_ROLE
+    ADD PRIMARY KEY (GROUP_ID,ROLE_ID) ;
+
+
+
+
+ALTER TABLE PRINCIPAL_PERMISSION
+    FOREIGN KEY FK_PRINCIPAL_PERMISSION_1 (PERMISSION_ID)
+    REFERENCES SECURITY_PERMISSION (PERMISSION_ID)
+;
+
+ALTER TABLE PRINCIPAL_PERMISSION
+    FOREIGN KEY FK_PRINCIPAL_PERMISSION_2 (PRINCIPAL_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+;
+
+
+ALTER TABLE SECURITY_CREDENTIAL
+    FOREIGN KEY FK_SECURITY_CREDENTIAL_1 (PRINCIPAL_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+;
+
+
+
+
+ALTER TABLE SSO_SITE_TO_PRINCIPALS
+    FOREIGN KEY SSO_SITE_TO_PRINC_FK1 (SITE_ID)
+    REFERENCES SSO_SITE (SITE_ID)
+;
+
+ALTER TABLE SSO_SITE_TO_PRINCIPALS
+    FOREIGN KEY SSO_SITE_TO_PRINC_FK2 (PRINCIPAL_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+;
+
+
+ALTER TABLE SSO_PRINCIPAL_TO_REMOTE
+    FOREIGN KEY FK_SSO_PRINCIPAL_TO_REMOTE_1 (PRINCIPAL_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+;
+
+ALTER TABLE SSO_PRINCIPAL_TO_REMOTE
+    FOREIGN KEY FK_SSO_PRINCIPAL_TO_REMOTE_2 (REMOTE_PRINCIPAL_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+;
+
+
+ALTER TABLE SSO_SITE_TO_REMOTE
+    FOREIGN KEY FK_SSO_SITE_TO_REMOTE_1 (SITE_ID)
+    REFERENCES SSO_SITE (SITE_ID)
+;
+
+ALTER TABLE SSO_SITE_TO_REMOTE
+    FOREIGN KEY FK_SSO_SITE_TO_REMOTE_2 (PRINCIPAL_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+;
+
+
+ALTER TABLE SSO_COOKIE_TO_REMOTE
+    FOREIGN KEY FK_SSO_COOKIE_TO_REMOTE_1 (COOKIE_ID)
+    REFERENCES SSO_COOKIE (COOKIE_ID)
+;
+
+ALTER TABLE SSO_COOKIE_TO_REMOTE
+    FOREIGN KEY FK_SSO_COOKIE_TO_REMOTE_2 (REMOTE_PRINCIPAL_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+;
+
+
+ALTER TABLE SECURITY_USER_ROLE
+    FOREIGN KEY FK_SECURITY_USER_ROLE_1 (ROLE_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+;
+
+ALTER TABLE SECURITY_USER_ROLE
+    FOREIGN KEY FK_SECURITY_USER_ROLE_2 (USER_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+;
+
+
+ALTER TABLE SECURITY_USER_GROUP
+    FOREIGN KEY FK_SECURITY_USER_GROUP_1 (GROUP_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+;
+
+ALTER TABLE SECURITY_USER_GROUP
+    FOREIGN KEY FK_SECURITY_USER_GROUP_2 (USER_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+;
+
+
+ALTER TABLE SECURITY_GROUP_ROLE
+    FOREIGN KEY FK_SECURITY_GROUP_ROLE_1 (GROUP_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+;
+
+ALTER TABLE SECURITY_GROUP_ROLE
+    FOREIGN KEY FK_SECURITY_GROUP_ROLE_2 (ROLE_ID)
+    REFERENCES SECURITY_PRINCIPAL (PRINCIPAL_ID)
+;
+
+

Propchange: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/security-schema.sql
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/security-schema.sql
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/jetspeed-integration/jetspeed-database/src/main/database/sapdb/security-schema.sql
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/sandbox/jetspeed-integration/jetspeed-derby-database/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/jetspeed-integration/jetspeed-derby-database/pom.xml?rev=588248&r1=588247&r2=588248&view=diff
==============================================================================
--- geronimo/sandbox/jetspeed-integration/jetspeed-derby-database/pom.xml (original)
+++ geronimo/sandbox/jetspeed-integration/jetspeed-derby-database/pom.xml Thu Oct 25 08:16:02 2007
@@ -29,29 +29,25 @@
     <description>
        This is the configuration of the derby datasource for the Jetspeed portal
     </description>
-
     <dependencies>
-      <dependency>
+        <dependency>
             <groupId>org.apache.geronimo.configs</groupId>
             <artifactId>jetspeed-base</artifactId>
             <version>${version}</version>
             <type>car</type>
         </dependency>
-
         <dependency>
             <groupId>org.apache.geronimo.configs</groupId>
             <artifactId>system-database</artifactId>
             <version>${version}</version>
             <type>car</type>
         </dependency>
-
         <dependency>
             <groupId>org.apache.geronimo.configs</groupId>
             <artifactId>transaction</artifactId>
             <version>${version}</version>
             <type>car</type>
         </dependency>
-
         <dependency>
             <groupId>org.apache.geronimo.configs</groupId>
             <artifactId>connector-deployer</artifactId>
@@ -59,27 +55,13 @@
             <type>car</type>
             <scope>provided</scope>
         </dependency>
-
-         <dependency>
+        <dependency>
             <groupId>org.tranql</groupId>
             <artifactId>tranql-connector-derby-embed-local</artifactId>
             <type>rar</type>
         </dependency>
     </dependencies>
-
     <build>
-      <!--
-        <resources>
-            <resource>
-                <targetPath>rar/META-INF/sql</targetPath>
-                <directory>${pom.basedir}/src/main/sql</directory>
-                <filtering>true</filtering>
-                <includes>
-                  <include>*.sql</include>
-                </includes>
-            </resource>
-        </resources>
-        -->
         <plugins>
             <plugin>
                 <groupId>org.apache.geronimo.plugins</groupId>

Modified: geronimo/sandbox/jetspeed-integration/jetspeed-derby-database/src/main/plan/plan.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/jetspeed-integration/jetspeed-derby-database/src/main/plan/plan.xml?rev=588248&r1=588247&r2=588248&view=diff
==============================================================================
--- geronimo/sandbox/jetspeed-integration/jetspeed-derby-database/src/main/plan/plan.xml (original)
+++ geronimo/sandbox/jetspeed-integration/jetspeed-derby-database/src/main/plan/plan.xml Thu Oct 25 08:16:02 2007
@@ -40,9 +40,25 @@
         </outbound-resourceadapter>
     </resourceadapter>
 
-    <gbean name="dbInit" class="org.apache.geronimo.connector.DatabaseInitializationGBean">
-      <attribute name="testSQL">DROP TABLE PREFS_NODE</attribute>
-      <attribute name="path">META-INF/sql/prefs-schema.sql</attribute>
+    <gbean name="PrefsSchemaInit" class="org.apache.geronimo.connector.DatabaseInitializationGBean">
+      <attribute name="testSQL"> </attribute>
+      <attribute name="path">META-INF/database/derby/prefs-schema.sql</attribute>
+      <reference name="DataSource">
+            <name>JetspeedPool</name>
+        </reference>
+    </gbean>
+
+    <gbean name="RegistrySchemaInit" class="org.apache.geronimo.connector.DatabaseInitializationGBean">
+      <attribute name="testSQL"> </attribute>
+      <attribute name="path">META-INF/database/derby/registry-schema.sql</attribute>
+      <reference name="DataSource">
+            <name>JetspeedPool</name>
+        </reference>
+    </gbean>
+
+    <gbean name="SecuritySchemaInit" class="org.apache.geronimo.connector.DatabaseInitializationGBean">
+      <attribute name="testSQL"> </attribute>
+      <attribute name="path">META-INF/database/derby/security-schema.sql</attribute>
       <reference name="DataSource">
             <name>JetspeedPool</name>
         </reference>

Modified: geronimo/sandbox/jetspeed-integration/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/jetspeed-integration/pom.xml?rev=588248&r1=588247&r2=588248&view=diff
==============================================================================
--- geronimo/sandbox/jetspeed-integration/pom.xml (original)
+++ geronimo/sandbox/jetspeed-integration/pom.xml Thu Oct 25 08:16:02 2007
@@ -28,6 +28,7 @@
     </description>
     
     <modules>
+      <module>jetspeed-database</module>
       <module>jetspeed-base</module>
       <module>jetspeed-derby-database</module>
       <module>jetspeed-tomcat</module>



Mime
View raw message