Initial commit from SVN.

This commit is contained in:
wcrisman
2014-05-30 10:31:51 -07:00
commit b45e56b890
1968 changed files with 370949 additions and 0 deletions

View File

@@ -0,0 +1,113 @@
<?xml version="1.0"?>
<!-- com.foundation.model.test.TestApplication -->
<repository name='MySQL' class='com.foundation.transaction.jdbc.mysql.MySQLRepositoryManager'>
<properties user-name='test' user-password='test' database-url='jdbc:mysql://localhost/test'/>
<class name="com.foundation.model.test.KeyTest" repository-class="KEY_TEST">
<attribute name="id" type="Integer" repository-name="ID" repository-type="INTEGER" is-key="true" is-auto-generated="true"/>
<attribute name="keys" type="byte[]" repository-name="KEYS" repository-type="LONGBLOB"/>
</class>
<class name="com.foundation.model.LogicalObjectChangeLog" repository-class="LOGICAL_OBJECT_CHANGE_LOG">
<attribute name="objectId" type="java.lang.Long" repository-name="VERSION_ID" repository-type="BIGINT"/>
<attribute name="version" repository-name="VERSION" repository-type="BIGINT"/>
<attribute name="changes" repository-name="CHANGES" repository-type="BLOB"/>
</class>
<class name="com.foundation.model.LogicalObjectMetadata" repository-class="LOGICAL_OBJECT">
<attribute name="logicalObjectId" type="java.lang.Long" repository-name="ID" repository-type="BIGINT"/>
<attribute name="version" type="java.lang.Long" repository-name="VERSION" repository-type="BIGINT"/>
<attribute name="lastObjectId" type="java.lang.Long" repository-name="LAST_OBJECT_ID" repository-type="BIGINT"/>
</class>
<class name="com.foundation.model.test.StatelessData" repository-class="STATELESS_DATA">
<attribute name='id' repository-name='ID' repository-type='INTEGER' is-key='true' is-auto-generated='true'/>
<attribute name="text" type="java.lang.String" repository-name="TEXT" repository-type="VARCHAR"/>
<attribute name="logicalObjectId" type="java.lang.Long" repository-name="ID" repository-type="BIGINT" metadata="logical object id" repository-class="LOGICAL_OBJECT" is-auto-generated='true' is-key='true'>
<join repository-name="LO_ID"/>
</attribute>
<attribute name='objectId' type="java.lang.Long" repository-name="O_ID" repository-type="BIGINT"/>
<attribute name="version" type="java.lang.Long" repository-name="VERSION" repository-type="BIGINT" metadata="version" repository-class="LOGICAL_OBJECT"/>
<!--
Another example which works the same as above (or should).
<attribute name="versionId" type="java.lang.Integer" repository-name="ID" repository-type="INTEGER" metadata="version id">
<join repository-name="VERSION_ID" repository-class="VERSION"/>
</attribute>
-->
</class>
<class class-name='com.foundation.model.test.ClassA' repository-name='CLASS_A'>
<attribute attribute-name='key' repository-name='ID' repository-type='INTEGER' is-key='true' is-auto-generated='true'/>
<attribute attribute-name='name' repository-name='NAME' repository-type='VARCHAR'/>
<attribute attribute-name='classBKey' repository-name='B_ID' repository-type='INTEGER'/>
<attribute attribute-name='classCKey' repository-name='C_ID' repository-type='INTEGER'/>
<properties/>
</class>
<class class-name='com.foundation.model.test.ClassB' repository-name='CLASS_B'>
<attribute attribute-name='key' repository-name='ID' repository-type='INTEGER' is-key='true' is-auto-generated='true'/>
<attribute attribute-name='name' repository-name='NAME' repository-type='VARCHAR'/>
<properties/>
</class>
<class class-name='com.foundation.model.test.ClassC' repository-name='CLASS_C'>
<attribute attribute-name='key' repository-name='ID' repository-type='INTEGER' is-key='true' is-auto-generated='true'/>
<attribute attribute-name='name' repository-name='NAME' repository-type='VARCHAR'/>
<properties/>
</class>
<class class-name='com.foundation.model.test.ClassD' repository-name='CLASS_D'>
<attribute attribute-name='key' repository-name='ID' repository-type='INTEGER' is-key='true' is-auto-generated='true'/>
<attribute attribute-name='name' repository-name='NAME' repository-type='VARCHAR'/>
<attribute attribute-name='classAKey' repository-name='A_ID' repository-type='INTEGER'/>
<properties/>
</class>
<class class-name='com.foundation.model.test.Widget' repository-name='WIDGET'>
<attribute attribute-name='key' repository-name='ID' repository-type='INTEGER' is-key='true' is-auto-generated='true'/>
<attribute attribute-name='name' repository-name='NAME' repository-type='VARCHAR'/>
<attribute attribute-name='classAKey' repository-name='A_ID' repository-type='INTEGER'/>
<properties/>
</class>
<class class-name='com.foundation.model.test.Gadget' repository-name='GADGET'>
<attribute attribute-name='key' repository-name='ID' repository-type='INTEGER' is-key='true' is-auto-generated='true'/>
<attribute attribute-name='name' repository-name='NAME' repository-type='VARCHAR'/>
<attribute attribute-name='classAKey' repository-name='A_ID' repository-type='INTEGER'/>
<properties/>
</class>
<class class-name='com.foundation.model.test.Thing' repository-name='THING'>
<attribute attribute-name='key' repository-name='ID' repository-type='INTEGER' is-key='true' is-auto-generated='true'/>
<attribute attribute-name='name' repository-name='NAME' repository-type='VARCHAR'/>
<properties/>
</class>
<class class-name='com.foundation.model.test.ClassAThing' repository-name='CLASS_A_THING'>
<attribute attribute-name='classAKey' repository-name='A_ID' repository-type='INTEGER' is-key='true'/>
<attribute attribute-name='thingKey' repository-name='THING_ID' repository-type='INTEGER' is-key='true'/>
<properties/>
</class>
<class class-name='com.foundation.model.test.Employee' repository-name='EMPLOYEE'>
<attribute attribute-name='id' repository-name='ID' repository-type='INTEGER' is-key='true' is-auto-generated='true'/>
<attribute attribute-name='name' repository-name='NAME' repository-type='VARCHAR'/>
<properties/>
</class>
<class class-name='com.foundation.model.test.Employer' repository-name='EMPLOYER'>
<attribute attribute-name='id' repository-name='ID' repository-type='INTEGER' is-key='true' is-auto-generated='true'/>
<attribute attribute-name='name' repository-name='NAME' repository-type='VARCHAR'/>
<attribute attribute-name='employeeCount' repository-name='EMPLOYEE_COUNT' repository-type='INTEGER'/>
<properties/>
</class>
<class class-name='com.foundation.model.test.EmployeeEmployerMap' repository-name='EMPLOYEE_EMPLOYER_MAP'>
<attribute attribute-name='employeeId' repository-name='EMPLOYEE_ID' repository-type='INTEGER' is-key='true'/>
<attribute attribute-name='employerId' repository-name='EMPLOYER_ID' repository-type='INTEGER' is-key='true'/>
<properties/>
</class>
<class class-name='com.foundation.model.test.DbProduct' repository-name='DBPRODUCT'>
<attribute attribute-name='id' repository-name='ID' repository-type='INTEGER' is-key='true' is-auto-generated='true'/>
<attribute attribute-name='name' repository-name='NAME' repository-type='VARCHAR'/>
<attribute attribute-name='cost' attribute-type="BigDecimal" repository-name='COST' repository-type='DECIMAL'/>
<attribute attribute-name='price' attribute-type="BigDecimal" repository-name='PRICE' repository-type='DECIMAL'/>
<properties/>
</class>
<class class-name='com.foundation.model.test.DbPart' repository-name='DBPART'>
<attribute attribute-name='id' repository-name='ID' repository-type='INTEGER' is-key='true' is-auto-generated='true'/>
<attribute attribute-name='name' repository-name='NAME' repository-type='VARCHAR'/>
<attribute attribute-name='cost' attribute-type="BigDecimal" repository-name='COST' repository-type='DECIMAL'/>
<attribute attribute-name='price' attribute-type="BigDecimal" repository-name='PRICE' repository-type='DECIMAL'/>
<properties/>
</class>
</repository>

View File

@@ -0,0 +1,270 @@
-- MySQL Administrator dump 1.4
--
-- ------------------------------------------------------
-- Server version 4.1.14-max
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
--
-- Create schema test
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ test;
USE test;
--
-- Table structure for table `test`.`class_a`
--
DROP TABLE IF EXISTS `class_a`;
CREATE TABLE `class_a` (
`ID` int(10) unsigned NOT NULL auto_increment,
`NAME` varchar(50) default NULL,
`B_ID` int(10) default NULL,
`C_ID` int(10) default NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='ClassA';
--
-- Dumping data for table `test`.`class_a`
--
/*!40000 ALTER TABLE `class_a` DISABLE KEYS */;
/*!40000 ALTER TABLE `class_a` ENABLE KEYS */;
--
-- Table structure for table `test`.`class_a_thing`
--
DROP TABLE IF EXISTS `class_a_thing`;
CREATE TABLE `class_a_thing` (
`A_ID` int(10) unsigned NOT NULL default '0',
`THING_ID` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`A_ID`,`THING_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='ClassAThing';
--
-- Dumping data for table `test`.`class_a_thing`
--
/*!40000 ALTER TABLE `class_a_thing` DISABLE KEYS */;
/*!40000 ALTER TABLE `class_a_thing` ENABLE KEYS */;
--
-- Table structure for table `test`.`class_b`
--
DROP TABLE IF EXISTS `class_b`;
CREATE TABLE `class_b` (
`ID` int(10) unsigned NOT NULL auto_increment,
`NAME` varchar(50) default NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='ClassB';
--
-- Dumping data for table `test`.`class_b`
--
/*!40000 ALTER TABLE `class_b` DISABLE KEYS */;
/*!40000 ALTER TABLE `class_b` ENABLE KEYS */;
--
-- Table structure for table `test`.`class_c`
--
DROP TABLE IF EXISTS `class_c`;
CREATE TABLE `class_c` (
`ID` int(10) unsigned NOT NULL auto_increment,
`NAME` varchar(50) default NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='ClassC';
--
-- Dumping data for table `test`.`class_c`
--
/*!40000 ALTER TABLE `class_c` DISABLE KEYS */;
/*!40000 ALTER TABLE `class_c` ENABLE KEYS */;
--
-- Table structure for table `test`.`class_d`
--
DROP TABLE IF EXISTS `class_d`;
CREATE TABLE `class_d` (
`ID` int(10) unsigned NOT NULL auto_increment,
`NAME` varchar(50) default NULL,
`A_ID` int(10) default NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='ClassD';
--
-- Dumping data for table `test`.`class_d`
--
/*!40000 ALTER TABLE `class_d` DISABLE KEYS */;
/*!40000 ALTER TABLE `class_d` ENABLE KEYS */;
--
-- Table structure for table `test`.`employee`
--
DROP TABLE IF EXISTS `employee`;
CREATE TABLE `employee` (
`ID` int(10) unsigned NOT NULL auto_increment,
`NAME` varchar(50) default NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Employee';
--
-- Dumping data for table `test`.`employee`
--
/*!40000 ALTER TABLE `employee` DISABLE KEYS */;
INSERT INTO `employee` VALUES (23,'Wynne Crisman'),
(24,'Jeff Miller');
/*!40000 ALTER TABLE `employee` ENABLE KEYS */;
--
-- Table structure for table `test`.`employee_employer_map`
--
DROP TABLE IF EXISTS `employee_employer_map`;
CREATE TABLE `employee_employer_map` (
`EMPLOYEE_ID` int(10) unsigned NOT NULL default '0',
`EMPLOYER_ID` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`EMPLOYEE_ID`,`EMPLOYER_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='EmployeeEmployerMap';
--
-- Dumping data for table `test`.`employee_employer_map`
--
/*!40000 ALTER TABLE `employee_employer_map` DISABLE KEYS */;
INSERT INTO `employee_employer_map` VALUES (23,18),
(24,18);
/*!40000 ALTER TABLE `employee_employer_map` ENABLE KEYS */;
--
-- Table structure for table `test`.`employer`
--
DROP TABLE IF EXISTS `employer`;
CREATE TABLE `employer` (
`ID` int(10) unsigned NOT NULL auto_increment,
`NAME` varchar(50) default NULL,
`EMPLOYEE_COUNT` int(11) default NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Employer';
--
-- Dumping data for table `test`.`employer`
--
/*!40000 ALTER TABLE `employer` DISABLE KEYS */;
INSERT INTO `employer` VALUES (18,'Declarative Engineering LLC',2);
/*!40000 ALTER TABLE `employer` ENABLE KEYS */;
--
-- Table structure for table `test`.`gadget`
--
DROP TABLE IF EXISTS `gadget`;
CREATE TABLE `gadget` (
`ID` int(10) unsigned NOT NULL auto_increment,
`NAME` varchar(50) default NULL,
`A_ID` int(10) default NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Gadget';
--
-- Dumping data for table `test`.`gadget`
--
/*!40000 ALTER TABLE `gadget` DISABLE KEYS */;
/*!40000 ALTER TABLE `gadget` ENABLE KEYS */;
--
-- Table structure for table `test`.`test_object`
--
DROP TABLE IF EXISTS `test_object`;
CREATE TABLE `test_object` (
`ID` int(10) unsigned NOT NULL auto_increment,
`NUMBER` int(10) unsigned NOT NULL default '0',
`TEXT` varchar(30) NOT NULL default 'text',
`FIXED_SIZE_DATA` tinyblob,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Test Object Table';
--
-- Dumping data for table `test`.`test_object`
--
/*!40000 ALTER TABLE `test_object` DISABLE KEYS */;
/*!40000 ALTER TABLE `test_object` ENABLE KEYS */;
--
-- Table structure for table `test`.`thing`
--
DROP TABLE IF EXISTS `thing`;
CREATE TABLE `thing` (
`ID` int(10) unsigned NOT NULL auto_increment,
`NAME` varchar(50) default NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Thing';
--
-- Dumping data for table `test`.`thing`
--
/*!40000 ALTER TABLE `thing` DISABLE KEYS */;
/*!40000 ALTER TABLE `thing` ENABLE KEYS */;
--
-- Table structure for table `test`.`widget`
--
DROP TABLE IF EXISTS `widget`;
CREATE TABLE `widget` (
`ID` int(10) unsigned NOT NULL auto_increment,
`NAME` varchar(50) default NULL,
`A_ID` int(10) default NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Widget';
--
-- Dumping data for table `test`.`widget`
--
/*!40000 ALTER TABLE `widget` DISABLE KEYS */;
/*!40000 ALTER TABLE `widget` ENABLE KEYS */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;