-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #191 from kakusuke/config-file
設定ファイルから注釈処理のオプションを読み込めるように
- Loading branch information
Showing
5 changed files
with
184 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
...ma/internal/apt/dao/DaoProcessorTest_SqlValidationSkipWhenOptionSpecifiedByConfigFile.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
package org.seasar.doma.internal.apt.dao; | ||
|
||
/** */ | ||
@javax.annotation.Generated(value = { "Doma", "@VERSION@" }, date = "1970-01-01T09:00:00.000+0900") | ||
public class SqlValidationSkipDaoImpl extends org.seasar.doma.internal.jdbc.dao.AbstractDao implements org.seasar.doma.internal.apt.dao.SqlValidationSkipDao { | ||
|
||
static { | ||
org.seasar.doma.internal.Artifact.validateVersion("@VERSION@"); | ||
} | ||
|
||
private static final java.lang.reflect.Method __method0 = org.seasar.doma.internal.jdbc.dao.AbstractDao.getDeclaredMethod(org.seasar.doma.internal.apt.dao.SqlValidationSkipDao.class, "selectById", java.lang.String.class); | ||
|
||
/** */ | ||
public SqlValidationSkipDaoImpl() { | ||
super(new org.seasar.doma.internal.apt.dao.MyConfig()); | ||
} | ||
|
||
/** | ||
* @param connection the connection | ||
*/ | ||
public SqlValidationSkipDaoImpl(java.sql.Connection connection) { | ||
super(new org.seasar.doma.internal.apt.dao.MyConfig(), connection); | ||
} | ||
|
||
/** | ||
* @param dataSource the dataSource | ||
*/ | ||
public SqlValidationSkipDaoImpl(javax.sql.DataSource dataSource) { | ||
super(new org.seasar.doma.internal.apt.dao.MyConfig(), dataSource); | ||
} | ||
|
||
/** | ||
* @param config the configuration | ||
*/ | ||
protected SqlValidationSkipDaoImpl(org.seasar.doma.jdbc.Config config) { | ||
super(config); | ||
} | ||
|
||
/** | ||
* @param config the configuration | ||
* @param connection the connection | ||
*/ | ||
protected SqlValidationSkipDaoImpl(org.seasar.doma.jdbc.Config config, java.sql.Connection connection) { | ||
super(config, connection); | ||
} | ||
|
||
/** | ||
* @param config the configuration | ||
* @param dataSource the dataSource | ||
*/ | ||
protected SqlValidationSkipDaoImpl(org.seasar.doma.jdbc.Config config, javax.sql.DataSource dataSource) { | ||
super(config, dataSource); | ||
} | ||
|
||
@Override | ||
public java.lang.String selectById(java.lang.String name) { | ||
entering("org.seasar.doma.internal.apt.dao.SqlValidationSkipDaoImpl", "selectById", name); | ||
try { | ||
org.seasar.doma.jdbc.query.SqlFileSelectQuery __query = getQueryImplementors().createSqlFileSelectQuery(__method0); | ||
__query.setMethod(__method0); | ||
__query.setConfig(__config); | ||
__query.setSqlFilePath("META-INF/org/seasar/doma/internal/apt/dao/SqlValidationSkipDao/selectById.sql"); | ||
__query.addParameter("name", java.lang.String.class, name); | ||
__query.setCallerClassName("org.seasar.doma.internal.apt.dao.SqlValidationSkipDaoImpl"); | ||
__query.setCallerMethodName("selectById"); | ||
__query.setResultEnsured(false); | ||
__query.setResultMappingEnsured(false); | ||
__query.setFetchType(org.seasar.doma.FetchType.LAZY); | ||
__query.setQueryTimeout(-1); | ||
__query.setMaxRows(-1); | ||
__query.setFetchSize(-1); | ||
__query.setSqlLogType(org.seasar.doma.jdbc.SqlLogType.FORMATTED); | ||
__query.prepare(); | ||
org.seasar.doma.jdbc.command.SelectCommand<java.lang.String> __command = getCommandImplementors().createSelectCommand(__method0, __query, new org.seasar.doma.internal.jdbc.command.BasicSingleResultHandler<java.lang.String>(org.seasar.doma.wrapper.StringWrapper::new, false)); | ||
java.lang.String __result = __command.execute(); | ||
__query.complete(); | ||
exiting("org.seasar.doma.internal.apt.dao.SqlValidationSkipDaoImpl", "selectById", __result); | ||
return __result; | ||
} catch (java.lang.RuntimeException __e) { | ||
throwing("org.seasar.doma.internal.apt.dao.SqlValidationSkipDaoImpl", "selectById", __e); | ||
throw __e; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
doma.sql.validation=false |