Essential ATG Dynamo Training - Got atg Certified Relationship Management Developer?
This is not an official ATG site: ATG, Dynamo, Scenario Server and Personalization Server are trademarks or registered trademarks of Art Technology Group
Articles Exercises Resources Links Search

Simple Repository Example

Overview

The task is to set up a simple repository from scratch.

Database Table

STUDENT
ID integer (primary key)
NAME string
GPA number(28, 20) (double)

Repository Item

Student
id integer (primary key)
fullName string
gpa double

Repository Component

A atg.adapter.gsa.GSARepository with the nucleus name /Repository/StudentRepository

Steps

  1. Create your database table using the HTTP admin UI on port 8830 or via SQL
  2. Create the Template Definition File named StudentRepository.xml in the Repository folder under your CONFIGPATH. Use the file C:\ATG\Dynamo5.1\DAS\src\config\atg\dynamo\service\jdbc\sqlRepository.xml as a template to get started
  3. Configure your repository component from scratch or just copy (right click) the atg\dynamo\service\jdbc\SQLRepository component in the DCC and paste it to where you want it, then just change the definitionFiles property to reference your new xml file

Help

SQL to create the table

CREATE TABLE Student (
        id                      INTEGER not null,
        NAME                    VARCHAR(32)     null,
        GPA                     NUMERIC(28, 20) null,
        primary key(id)
);
 


Technical Training Advertise your Training Programs for Free! Los Angeles Web Design Shopping Cart Software  Form a Corporation