org.nakedobjects.plugins.hibernate.objectstore.tools
Class HibernateTools

java.lang.Object
  extended by org.nakedobjects.plugins.hibernate.objectstore.tools.HibernateTools

public class HibernateTools
extends java.lang.Object


Constructor Summary
HibernateTools()
           
 
Method Summary
static void dropSchema(boolean script, boolean export)
          Drop schema from database
static void exportHbmXml(java.lang.String basedir)
          Export Hibernate mapping files for all Naked Objects currently in NakedObjects.
static void exportSchema(boolean script, boolean export)
          Export schema to database - will also drop tables first
static void updateSchema(boolean script, boolean export)
          Update Schema in the database
static void updateSchema(org.hibernate.cfg.Configuration cfg, boolean script, boolean export)
          Update Schema in the database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateTools

public HibernateTools()
Method Detail

exportSchema

public static void exportSchema(boolean script,
                                boolean export)
Export schema to database - will also drop tables first

Parameters:
script - to write DDL script to System.out
export - to export updates to the database

dropSchema

public static void dropSchema(boolean script,
                              boolean export)
Drop schema from database

Parameters:
script - to write DDL script to System.out
export - to export updates to the database

updateSchema

public static void updateSchema(boolean script,
                                boolean export)
Update Schema in the database

Parameters:
script - to write DDL script to System.out
export - to export updates to the database

updateSchema

public static void updateSchema(org.hibernate.cfg.Configuration cfg,
                                boolean script,
                                boolean export)
Update Schema in the database

Parameters:
script - to write DDL script to System.out
export - to export updates to the database

exportHbmXml

public static void exportHbmXml(java.lang.String basedir)
Export Hibernate mapping files for all Naked Objects currently in NakedObjects.

Parameters:
outDir -


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.