my comment is: commit it.
"Brekke, Jeff" wrote:
>
> We found a problem where the default mapbuilder is being used when we really
> want the correct one defined in our schema to be called. Below is our patch
> to make the mapbuilder datamember public in the Peer generated classes and
> use that in the Object generated classes when saveing. I don't think this
> trounces on anything else, comments?
>
> Index: Object.vm
> ===================================================================
> RCS file: /products/cvs/turbine/turbine/conf/torque/templates/om/Object.vm,v
> retrieving revision 1.36
> diff -u -r1.36 Object.vm
> --- Object.vm 2001/02/26 05:09:53 1.36
> +++ Object.vm 2001/02/26 16:57:50
> @@ -765,7 +765,7 @@
> try
> {
> dbCon = BasePeer.beginTransaction(
> - ${table.JavaName}Peer.getMapBuilder()
> + ${table.JavaName}Peer.mapbuilder
> .getDatabaseMap().getName());
> save(dbCon);
> }
> Index: Peer.vm
> ===================================================================
> RCS file: /products/cvs/turbine/turbine/conf/torque/templates/om/Peer.vm,v
> retrieving revision 1.39
> diff -u -r1.39 Peer.vm
> --- Peer.vm 2001/02/24 21:50:31 1.39
> +++ Peer.vm 2001/02/26 16:57:51
> @@ -42,7 +42,7 @@
> public abstract class ${table.BaseJavaName}Peer $extendsBasePeer
> {
> /** the mapbuilder for this class */
> - private static final ${table.JavaName}MapBuilder mapBuilder =
> + public static final ${table.JavaName}MapBuilder mapBuilder =
>
> (${table.JavaName}MapBuilder)getMapBuilder(${table.JavaName}MapBuilder.CLASS
> _NAME);
>
> /** the table name for this class */
>
> -----------------------------------------------------------------------
>
> This message has been scanned for viruses with Trend Micro's Interscan VirusWall.
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]