Re: Using constants in SQL statements

2005-06-07 Thread Brandon Goodin
currently everything is setter/getter based. So, you would need to provide a getter at minimum for your constant. We could discuss direct access to public properties. I don't think that would be too difficult. It might even be a cool idea to use an alias like daniel discussed. However, it would req

Re: Using constants in SQL statements

2005-06-07 Thread Daniel Henrique Ferreira e Silva
Hi, I may be saying something really stupid but, well, progress comes along with a lot of stupid questions :) Let's suppose you have a class or interface loaded with plenty of constants. If i create a type alias for that, can i use it in my sql maps using the dot notation? For instance: public

Re: Using constants in SQL statements

2005-06-07 Thread Clinton Begin
It's not supported at this time.  But feel free to add a JIRA request.  It probably wouldn't be hard. Clinton On 6/7/05, ONeill, Niall <[EMAIL PROTECTED]> wrote: Hi,Is there a way in iBATIS to use static Java fields within SQL statements? Currently I am having to hard-code static values in the st

Using constants in SQL statements

2005-06-07 Thread ONeill, Niall
Hi, Is there a way in iBATIS to use static Java fields within SQL statements? Currently I am having to hard-code static values in the statements, but this presents problems if those values ever change and make it difficult to understand the SQL. Regards, Niall O'Neill ***