ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Butler (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Closed: (IBATIS-507) Ibator support for table defined subpackage
Date Thu, 05 Jun 2008 19:49:46 GMT

     [ https://issues.apache.org/jira/browse/IBATIS-507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Jeff Butler closed IBATIS-507.

    Resolution: Won't Fix

This seems like an unusual request to me, so I don't think we should include it in the base
ibator code.  However, I have made some recent improvements to the extensibility of ibator
that will enable you to easily implement this for your needs:

<ibatorContext introspectedTableImplementation="com.foo.Bar" >

Then Java code like this:

package com.foo;

import org.apache.ibatis.ibator.internal.db.IntrospectedTableDefaultImpl;

public class Bar extends IntrospectedTableDefaultImpl {

  public String getJavaModelPackage() {

  public String getDAOPackage() {

  public String getSqlMapPackage() {

> Ibator support for table defined subpackage
> -------------------------------------------
>                 Key: IBATIS-507
>                 URL: https://issues.apache.org/jira/browse/IBATIS-507
>             Project: iBatis for Java
>          Issue Type: New Feature
>          Components: Tools
>    Affects Versions: 2.3.3
>         Environment: N/A
>            Reporter: Dan Turkenkopf
>            Priority: Minor
>         Attachments: ibator_subpackage.patch
> It would be helpful to be able to specify a subpackage for any given table when using
Ibator to generate the code.
> For example, I might want to put table X in com.test.foo and table Y in com.test.bar.
> I've added the property "subPackage" to the table definition which overrides the schema
based subpackage fragment if set.
> Using the above example, I'd add <property name="subPackage" value="foo"/> to the
defintion for table X.
> Patch is attached.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message