Changeset 17290 for lang/java

Show
Ignore:
Timestamp:
08/09/08 19:36:31 (4 months ago)
Author:
int128
Message:

hsqldbをサーバモードで使う設定にしてみた

Location:
lang/java/slideboard/trunk
Files:
3 added
2 modified

Legend:

Unmodified
Added
Removed
  • lang/java/slideboard/trunk/sql/create.sql

    r17181 r17290  
    11 
    22CREATE TABLE post ( 
    3         post_id integer generated by default as identity, 
     3        id integer generated by default as identity, 
    44        title varchar(255) not null, 
    55        description varchar(255) not null, 
     
    88 
    99CREATE TABLE author ( 
    10         author_id integer generated by default as identity, 
     10        id integer generated by default as identity, 
    1111        name varchar(255) not null, 
    1212        department varchar(255) not null, 
     
    1414); 
    1515 
    16 INSERT INTO post VALUES(1, 'Post(1)', 'This is a test post.', 0); 
    17 INSERT INTO post VALUES(2, 'Post(2)', 'This is a test post.', 0); 
    18 INSERT INTO post VALUES(3, 'Post(3)', 'This is a test post.', 0); 
     16INSERT INTO post VALUES(1, 'Post1', 'This is a test post.', 3); 
     17INSERT INTO post VALUES(2, 'Post2', 'This is a test post.', 2); 
     18INSERT INTO post VALUES(3, 'Post3', 'This is a test post.', 1); 
     19 
     20INSERT INTO author VALUES(1, 'Taro', 'My Home Security', 'taro@example.com'); 
     21INSERT INTO author VALUES(2, 'Jiro', 'Your Home Security', 'jiro@example.com'); 
     22INSERT INTO author VALUES(3, 'Ikzo', 'My Home Security', 'ikzo@example.com'); 
     23 
     24COMMIT; 
  • lang/java/slideboard/trunk/src/main/resources/jdbc.dicon

    r17155 r17290  
    1212                </property> 
    1313                <property name="URL"> 
    14                         "jdbc:hsqldb:file:" 
    15                                 + @org.seasar.framework.util.ResourceUtil@getBuildDir('app.dicon').getCanonicalPath() 
    16                                 + "/data/test" 
     14                        "jdbc:hsqldb:hsql://localhost/test" 
    1715                </property> 
    1816                <property name="user">"sa"</property>