Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

issue about generating models and mappings with tables those have CLOB or BLOB columns #797

Open
GoogleCodeExporter opened this issue Apr 21, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What version of the MyBatis are you using?
mybatis-generator 1.3.2
mybatis 3.1.1

Please describe the problem.  Unit tests are best!
I configed the table element in my generatorConfig.xml like this:
<table tableName="TBL_ONLINE_TXN_LOG_DAILY" 
domainObjectName="OnlineTxnLogDaily"/>
and the generated interface "OnlineTxnLogDailyMapper.java" has a compile error: 
the return type of the method "selectByPrimaryKey" has a suffix of "WithBLOBs", 
but there is no class named "OnlineTxnLogDailyWithBLOBs"

What is the expected output? What do you see instead?
the expected output is the reture type of "selectByPrimaryKey" has no suffix.
I see the return type of "selectByPrimaryKey" has a suffix of "WithBLOBs" and 
it cause a compile error.


Can you provide stack trace, logs, error messages that are displayed?
no more information.

Please provide any additional information below.
after reading the source code of mybatis-generator,I found the default 
modelType "Conditional" will cause this error, and when I changed it to "FLAT" 
it worked properly.

Original issue reported on code.google.com by joesun1...@gmail.com on 17 Mar 2013 at 4:05

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant