openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lspasam <...@edelements.com>
Subject Re: Native SQL Query
Date Fri, 03 Jun 2011 00:24:45 GMT
Additional information I found, is that this only happens in a Distributed
environment (Slice).  Below is the method that is returning null for
ExpressionParser.  At this point in execution, language is "openJpa.SQL". 
There doesn't seem to be an ExpressionParser mapped to this language.



    public StoreQuery newQuery(String language) {
        ExpressionParser parser =
QueryLanguages.parserForLanguage(language);
        DistributedStoreQuery ret = new DistributedStoreQuery(this, parser);
        for (SliceStoreManager slice : _slices) {
            ret.add(slice.newQuery(language));
        }
        return ret;
    }


Is this a bug or is native queries not going to be supported in a sliced
environment?



--
View this message in context: http://openjpa.208410.n2.nabble.com/Native-SQL-Query-tp6432918p6433509.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message