Jeff Butler | 1 May 05:35 2006
Picon

[Abator] Version 0.6.5 Released

There is a new version of Abator, and the Eclipse plugin for Abator.  New features common to both include:
 
1. Added support for specifying rootClass for the model objects and rootInterface for the DAO interface.  To use, specify the "rootClass" optional property on the <javaModelGenerator> element, or the "rootInterface" optional property on the <daoGenerator> element.
  
   For example:
     <javaModelGenerator ... >
       <property name="rootClass" value="com.somedomain.SomeClass" />
     </javaModelGenerator>
  
     <daoGenerator ... >
       <property name="rootInterface" value="com.somedomain.SomeInterface" />
     </daoGenerator>
    
   Note that Abator uses these values "as is" - no checking is done to validate their existance or validity.
  
2. Refactored code generation rules and added better documentation for the rules (see new org.apache.ibatis.abator.internal.rules package)
3. Ensure that property names are valid for iBATIS even if the user specifies "useActualColumnNames"
4. Added JDBC types for DATE and TIME fields to the mapping properties in the "by example" where clause fragment
5. Externalized all message strings
6. Abator will now survive if the JDBC driver does not support the getPrimaryKeys() function - but with reduced function
 
A new feature for the Eclipse plugin allows you to specify different source folders in a target project.  For example:
 
<javaModelGenerator targetPackage="my.package" targetProject="Abator Project/srcfolder">
...
</javaModelGenerator>
 
IMPORTANT: this is the last version of the Abator plugin for Eclipse that will be compatible with Eclispe 3.0, or the Rational 6.0 series of tools.
 
See here for downloads:
 
 
Jeff Butler
 
Jeff Butler | 1 May 05:42 2006
Picon

Re: [Abator] Version 0.6.5 Released

Argh - wrong URL.  It should be:
 
 
Jeff Butler
 


On 4/30/06, Jeff Butler <jeffgbutler <at> gmail.com> wrote:
There is a new version of Abator, and the Eclipse plugin for Abator.  New features common to both include:
 
1. Added support for specifying rootClass for the model objects and rootInterface for the DAO interface.  To use, specify the "rootClass" optional property on the <javaModelGenerator> element, or the "rootInterface" optional property on the <daoGenerator> element.
  
   For example:
     <javaModelGenerator ... >
       <property name="rootClass" value="com.somedomain.SomeClass" />
     </javaModelGenerator>
  
     <daoGenerator ... >
       <property name="rootInterface" value="com.somedomain.SomeInterface" />
     </daoGenerator>
    
   Note that Abator uses these values "as is" - no checking is done to validate their existance or validity.
  
2. Refactored code generation rules and added better documentation for the rules (see new org.apache.ibatis.abator.internal.rules package)
3. Ensure that property names are valid for iBATIS even if the user specifies "useActualColumnNames"
4. Added JDBC types for DATE and TIME fields to the mapping properties in the "by example" where clause fragment
5. Externalized all message strings
6. Abator will now survive if the JDBC driver does not support the getPrimaryKeys() function - but with reduced function
 
A new feature for the Eclipse plugin allows you to specify different source folders in a target project.  For example:
 
<javaModelGenerator targetPackage="my.package" targetProject="Abator Project/srcfolder">
...
</javaModelGenerator>
 
IMPORTANT: this is the last version of the Abator plugin for Eclipse that will be compatible with Eclispe 3.0, or the Rational 6.0 series of tools.
 
See here for downloads:
 
 
Jeff Butler
 

Hendry | 1 May 11:23 2006

about dao implementation

Hi all,

Right now I'm trying to use dao framework and sql map for my 
application, before I was using only sql map. But I got this error,

"com.ibatis.dao.client.DaoException: There is no DAO implementation 
found for class com.abc.dao.sqlmap.SqlMapDao in any context. If you've 
registered multiple implementations of this DAO, you must specify the 
Context ID for the DAO implementationyou're looking for using the 
getDao(Class iface, String contextId) method."

dao.xml that i used :

<!DOCTYPE daoConfig PUBLIC "-//ibatis.apache.org//DTD DAO Configuration 
2.0//EN" "http://ibatis.apache.org/dtd/dao-2.dtd">
<daoConfig>
     <properties resource="conf/db.properties"/>

     <!-- JDBC DAO Configuration -->
...
     <!-- SQL Maps DAO Configuration -->

     <context>
         <transactionManager type="SQLMAP">
             <property name="SqlMapConfigResource" 
value="conf/SqlMapConfig.xml"/>
         </transactionManager>

         <dao interface="com.abc.dao.ContentOrderDao"
             implementation="com.abc.dao.sqlmap.SqlMapDao"/>
     </context>

</daoConfig>

--

-- 
Regards,
Hendry

Niels Beekman | 1 May 11:59 2006
Picon

RE: about dao implementation

You are probably using getDao(abc.dao.sqlmap.SqlMapDao.class) while you
should use getDao(com.abc.dao.ContentOrderDao)...

Niels

-----Original Message-----
From: Hendry [mailto:hendry.hu <at> elasitas.com] 
Sent: maandag 1 mei 2006 11:24
To: user-java <at> ibatis.apache.org
Subject: about dao implementation

Hi all,

Right now I'm trying to use dao framework and sql map for my 
application, before I was using only sql map. But I got this error,

"com.ibatis.dao.client.DaoException: There is no DAO implementation 
found for class com.abc.dao.sqlmap.SqlMapDao in any context. If you've 
registered multiple implementations of this DAO, you must specify the 
Context ID for the DAO implementationyou're looking for using the 
getDao(Class iface, String contextId) method."

dao.xml that i used :

<!DOCTYPE daoConfig PUBLIC "-//ibatis.apache.org//DTD DAO Configuration 
2.0//EN" "http://ibatis.apache.org/dtd/dao-2.dtd">
<daoConfig>
     <properties resource="conf/db.properties"/>

     <!-- JDBC DAO Configuration -->
...
     <!-- SQL Maps DAO Configuration -->

     <context>
         <transactionManager type="SQLMAP">
             <property name="SqlMapConfigResource" 
value="conf/SqlMapConfig.xml"/>
         </transactionManager>

         <dao interface="com.abc.dao.ContentOrderDao"
             implementation="com.abc.dao.sqlmap.SqlMapDao"/>
     </context>

</daoConfig>

--

-- 
Regards,
Hendry

Hendry | 1 May 12:33 2006

Re: about dao implementation

Yes, it's work, thanx. SOL

Regards,
Hendry

Niels Beekman wrote:
> You are probably using getDao(abc.dao.sqlmap.SqlMapDao.class) while you
> should use getDao(com.abc.dao.ContentOrderDao)...
> 
> Niels

Yee, Richard K CTR DMDC | 1 May 17:30 2006

RE: about Stopwatch

There is a StopWatch class in the Jakarta Commons Lang library. It is in the org.apache.commons.lang.time package.
 
-Richard
 
-----Original Message-----
From: buffoonguo <at> gmail.com [mailto:buffoonguo <at> gmail.com]
Sent: Saturday, April 29, 2006 5:56 PM
To: user-java <at> ibatis.apache.org
Subject: Re: about Stopwatch

Thanks.

On 4/30/06, Clinton Begin <clinton.begin <at> gmail.com> wrote:

Stopwatch isn't supported.  Feel free to use it, but don't count on it being there.

Cheers,
Clinton


On 4/28/06, 悠云 < buffoonguo <at> gmail.com> wrote:
Hello,everyone.
I have got iBATIS's source code from Subversion.I have a question after I read the source of Stopwatch(com.ibatis.common.util.Stopwatch).
In the source , it is:
/**
   * Start (create) a task
   * <at> param taskName - the name of the task
   */
  public void start(String taskName) {
    if (log.isDebugEnabled()) {
      log.debug("Starting: " + taskName);
    }
    this.currentTaskName = taskName;
    currentTaskTime = System.currentTimeMillis();
  }
But,when I use this method,the new TaskStat is not created.
I think , it should be like this:
    public void start(String taskName) {
        if (log.isDebugEnabled()) {
            log.debug("Starting: " + taskName);
        }
        this.currentTaskName = taskName;
        currentTaskTime = System.currentTimeMillis();
        appendTaskTime(currentTaskName, currentTaskTime);
    }


seyhan.basmaci | 1 May 20:28 2006
Picon

abator Introspection for Stored Procedures, functions

İs it possible to generate code from stored procedures ?

 

 
 
Bu elektronik posta mesajı ve ekleri sadece gönderildiği kişi veya kuruma özeldir ve gizli bilgiler içerebilir. Eğer bu mesajı hataen aldıysanız lütfen bu durumu gönderen kişiye derhal bildiriniz ve mesajı sisteminizden siliniz. Eğer doğru kişiye ulaşmadığını düşünüyorsanız, bu mesajın gizlenmesi, yönlendirilmesi, kopyalanması veya herhangi bir şekilde kullanılması yasaktır. Internet iletişiminde güvenlik ve hatasız gönderim garanti edilemeyeceğinden, mesajın yerine ulaşmaması, geç ulaşması, içeriğinin bozulması ya da mesajın virus taşıması gibi problemler oluşabilir. Gönderen taraf bu tip sorunlardan sorumlu tutulmaz.

This e-mail message and any attachments are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this message in error, please notify the sender immediately and delete it from your system. If you are not the intended recipient you are hereby notified that any dissemination, forwarding, copying or use of any of the information is prohibited. Internet communications cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, arrive late or contain viruses. The sender therefore does not accept liability for any errors or omissions in the context of this message which arise as a result of Internet transmission.
harinder nandyala | 2 May 02:17 2006
Picon

Can I use Hibernate 3.x with latest iBatis DAO?


When I use Hibernate with Latest ibatis DAO I get this error:

java.lang.NoClassDefFoundError: net/sf/hibernate/cfg/Configuration

Can I use this version of Hibernate?
Here is a part of daomap.xml file:
******************
<context id="hibernatemap">
		<transactionManager type="HIBERNATE">
		<property name="JDBC.Driver" value="com.ibm.db2.jcc.DB2Driver"/>
			<property name="hibernate.dialect" 
value="org.hibernate.dialect.DB2Dialect"/>
			<property name="hibernate.connection.driver_class" 
value="com.ibm.db2.jcc.DB2Driver"/>
			<property name="hibernate.connection.datasource" value="jdbc/SAMPLE"/>
			<property name="class.1" value="com.sample.contact.Contact" />
		</transactionManager>
		<dao interface="com.sample.contact.dao.ContactDAO"
			implementation="com.sample.contact.dao.hibernate.HibernateContactDAO" />
	</context>
******************
Any help is appreciated. Thank you,

"The more you strive for humanity, the more civilized you become" -ASHA

Harinder Nandyala
http://www.ashakiran.org

Christopher Lamey | 2 May 04:33 2006

Re: Can I use Hibernate 3.x with latest iBatis DAO?

Hello,

The one and only time I've used Hibernate, I think I saw that message
when 3.x code resolved to a 2.x library.  Is there a 2.x Hibernate
library in your CLASSPATH somewhere before the 3.x library?  If you're
using JBoss, there's a 2.x hibernate deployer by default in
$JBOSS_HOME/server/$SERVER_NAME/deploy

Once the class is resovled, I have no idea if what you're trying to do
will work but if it doesn't you'll probably get a different error.

Cheers,
topher

On Tue, 2006-05-02 at 00:17 +0000, harinder nandyala wrote:
> When I use Hibernate with Latest ibatis DAO I get this error:
> 
> java.lang.NoClassDefFoundError: net/sf/hibernate/cfg/Configuration
> 
> Can I use this version of Hibernate?
> Here is a part of daomap.xml file:
> ******************
> <context id="hibernatemap">
> 		<transactionManager type="HIBERNATE">
> 		<property name="JDBC.Driver" value="com.ibm.db2.jcc.DB2Driver"/>
> 			<property name="hibernate.dialect" 
> value="org.hibernate.dialect.DB2Dialect"/>
> 			<property name="hibernate.connection.driver_class" 
> value="com.ibm.db2.jcc.DB2Driver"/>
> 			<property name="hibernate.connection.datasource" value="jdbc/SAMPLE"/>
> 			<property name="class.1" value="com.sample.contact.Contact" />
> 		</transactionManager>
> 		<dao interface="com.sample.contact.dao.ContactDAO"
> 			implementation="com.sample.contact.dao.hibernate.HibernateContactDAO" />
> 	</context>
> ******************
> Any help is appreciated. Thank you,
> 
> "The more you strive for humanity, the more civilized you become" -ASHA
> 
> Harinder Nandyala
> http://www.ashakiran.org
> 

Larry Meadors | 2 May 04:42 2006
Picon

Re: Can I use Hibernate 3.x with latest iBatis DAO?

You may be able to get this working, but to me the real question is
"why?", not "how?".

IMO, I'd use Spring for the dao instead of the iBATIS dao.

Larry

On 5/1/06, Christopher Lamey <clamey <at> localmatters.com> wrote:
> Hello,
>
> The one and only time I've used Hibernate, I think I saw that message
> when 3.x code resolved to a 2.x library.  Is there a 2.x Hibernate
> library in your CLASSPATH somewhere before the 3.x library?  If you're
> using JBoss, there's a 2.x hibernate deployer by default in
> $JBOSS_HOME/server/$SERVER_NAME/deploy
>
> Once the class is resovled, I have no idea if what you're trying to do
> will work but if it doesn't you'll probably get a different error.
>
> Cheers,
> topher
>
> On Tue, 2006-05-02 at 00:17 +0000, harinder nandyala wrote:
> > When I use Hibernate with Latest ibatis DAO I get this error:
> >
> > java.lang.NoClassDefFoundError: net/sf/hibernate/cfg/Configuration
> >
> > Can I use this version of Hibernate?
> > Here is a part of daomap.xml file:
> > ******************
> > <context id="hibernatemap">
> >               <transactionManager type="HIBERNATE">
> >               <property name="JDBC.Driver" value="com.ibm.db2.jcc.DB2Driver"/>
> >                       <property name="hibernate.dialect"
> > value="org.hibernate.dialect.DB2Dialect"/>
> >                       <property name="hibernate.connection.driver_class"
> > value="com.ibm.db2.jcc.DB2Driver"/>
> >                       <property name="hibernate.connection.datasource" value="jdbc/SAMPLE"/>
> >                       <property name="class.1" value="com.sample.contact.Contact" />
> >               </transactionManager>
> >               <dao interface="com.sample.contact.dao.ContactDAO"
> >                       implementation="com.sample.contact.dao.hibernate.HibernateContactDAO" />
> >       </context>
> > ******************
> > Any help is appreciated. Thank you,
> >
> > "The more you strive for humanity, the more civilized you become" -ASHA
> >
> > Harinder Nandyala
> > http://www.ashakiran.org
> >
>
>


Gmane