I was really unhappy with the package structure of the generated DAOs. There exists some circular packages between RootDAO, BaseRootDao and the other DAOs.
The attached patch solves this problem.
Logged In: NO
Sorry. My Firefox cannot upload :(
diff -u -r1.1 HibernateClass.java --- HibernateClass.java 20 Feb 2005 19:51:45 -0000 1.1 +++ HibernateClass.java 26 Oct 2005 19:52:52 -0000 @@ -441,7 +441,7 @@ * Return the package prefix of the root DAO class. */ public String getRootDAOPackage () { - return getDAOPackage(); + return getBaseDAOPackage(); }
/** @@ -643,7 +643,7 @@ * Return the fully qualified class name of the root DAO class. */ public String getAbsoluteRootDAOClassName () { - return getDAOPackage() + "." + getRootDAOClassName(); + return getRootDAOPackage() + "." + getRootDAOClassName(); }
/**
Log in to post a comment.
Logged In: NO
Sorry. My Firefox cannot upload :(
diff -u -r1.1 HibernateClass.java
--- HibernateClass.java 20 Feb 2005 19:51:45 -0000 1.1
+++ HibernateClass.java 26 Oct 2005 19:52:52 -0000
@@ -441,7 +441,7 @@
* Return the package prefix of the root DAO class.
*/
public String getRootDAOPackage () {
- return getDAOPackage();
+ return getBaseDAOPackage();
}
/**
@@ -643,7 +643,7 @@
* Return the fully qualified class name of the root
DAO class.
*/
public String getAbsoluteRootDAOClassName () {
- return getDAOPackage() + "." +
getRootDAOClassName();
+ return getRootDAOPackage() + "." +
getRootDAOClassName();
}
/**