Created
November 28, 2013 12:11
-
-
Save mystelynx/7690910 to your computer and use it in GitHub Desktop.
SpringのXMLでSQL定義1
This file contains hidden or 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
<beans:bean id="foo" class="SomeClass"> | |
<property name="aSql" value="select * from a_table" /> | |
<property name="bSql" value="select * from b_table" /> | |
<property name="cSql"> | |
<value> | |
<![CDATA[ | |
select | |
* | |
from c_table | |
where a > 1 | |
]]> | |
</value> | |
</property> | |
</beans:bean> |
This file contains hidden or 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
public class SomeClass { | |
String aSql; | |
String bSql; | |
String cSql; | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment