Skip to main content



      Home
Home » Modeling » EMF » creating database in postgresql via cdo-server.xml
creating database in postgresql via cdo-server.xml [message #1065912] Fri, 28 June 2013 05:37
Eclipse UserFriend
hello guys,
i m working on cdo and emf based application, and using PostgreSQL as my database and running the server from cdo-server.xml

i want to allow the cdo-server.xml to create database if doesn't exists, as in mysql happens,

but its not working.

here is my cdo-server.xml for postgresql

<?xml version="1.0" encoding="UTF-8"?>
<cdoServer>
<acceptor type="tcp" listenAddr="0.0.0.0" port="2036">
</acceptor>
<repository name="demo">
<store type="db">
<mappingStrategy type="horizontal" />
<dbAdapter name="postgresql" />
<dataSource class="org.postgresql.ds.PGSimpleDataSource"
serverName="localhost" portNumber="5433"
databaseName="cdotests" createDatabaseIfNotExist="true"
user="postgres" password="admin" />
</store>
</repository>
</cdoServer>
Previous Topic:What is the purpose of GENMODEL's "generate model/edit/test code" ?
Next Topic:[CDO]
Goto Forum:
  


Current Time: Wed Jul 09 18:58:12 EDT 2025

Powered by FUDForum. Page generated in 0.04114 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top