About the current javadoc for the Sql annotation there is no an explicit indication if the scripts
and statements
attributes/elements can be used together or not at the same time
Thanks for your understanding.
Comment From: sbrannen
The Javadoc for scripts
states:
this attribute may be used in conjunction with or instead of
statements()
.
And the Javadoc for statements
states:
This attribute may be used in conjunction with or instead of
scripts()
.
The Javadoc for statements
goes on to say:
Statements declared via this attribute will be executed after statements loaded from resource
scripts()
. If you wish to have inlined statements executed before scripts, simply declare multiple instances of@Sql
on the same class or method.
I don't see how it can be any more explicit.
In light of that, I am closing this issue.
Comment From: manueljordan
Oh ... I was so tired that I didn't read that. Sorry.