Enhancement 165 : ENHANCEMENT: Support offline generation of DDL ... aka without a Connection
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.4.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
07/10/2009
Updated 
07/10/2009
Type 
Enhancement
 
Attachments 
No attachments

This means you can test and look at schemas generated for other DB's without needing a connection to them (have them installed locally etc).

 
Rob 22 Feb 09:32
Fixed in HEAD

To do this you need to do 2 things.

ServerConfig config = new ServerConfig();
  config.setName("myservername");
  ..
  // start offline with no DataSource
  config.getDataSourceConfig().setOffline(true);

  // explicitly specify the database platform
  // as oracle, h2, postgres, mysql etc
  config.setDatabasePlatformName("oracle");
  ...

You won't be able to do much with the server except DDL generation and use the Ldap features.

Rob 22 Feb 09:32
Fixed in HEAD

Fixed in HEAD.

woResponse

Upload a file