Author: max.andersen(a)jboss.com
Date: 2007-11-04 03:54:31 -0500 (Sun, 04 Nov 2007)
New Revision: 14187
Modified:
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/cfg/reveng/DefaultReverseEngineeringStrategy.java
Log:
subclasses can get access to runtimeinfo
Modified:
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/cfg/reveng/DefaultReverseEngineeringStrategy.java
===================================================================
---
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/cfg/reveng/DefaultReverseEngineeringStrategy.java 2007-11-04
08:51:49 UTC (rev 14186)
+++
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/cfg/reveng/DefaultReverseEngineeringStrategy.java 2007-11-04
08:54:31 UTC (rev 14187)
@@ -166,6 +166,8 @@
public void close() {
runtimeInfo = null;
}
+
+
/** Return explicit which column name should be used for optimistic lock */
public String getOptimisticLockColumnName(TableIdentifier identifier) {
@@ -250,6 +252,10 @@
return settings.getRootStrategy();
}
+ protected ReverseEngineeringRuntimeInfo getRuntimeInfo() {
+ return runtimeInfo;
+ }
+
public String foreignKeyToManyToManyName(ForeignKey fromKey, TableIdentifier
middleTable, ForeignKey toKey, boolean uniqueReference) {
String propertyName = Introspector.decapitalize( StringHelper.unqualify(
getRoot().tableToClassName(TableIdentifier.create( toKey.getReferencedTable()) )) );
propertyName = pluralize( propertyName );
Show replies by date