プロパティに特別な値を含む一部のオブジェクトを除いて、Oracle 11g データベースからすべてのオブジェクトを取得しようとしています。
コード:
//Retrieve thoughts
def thoughts = Question.findAllByThoughtsNotInList(["-", "", null], params)
def totalThoughts = Question.countByThoughtsNotInList(["-", "", null])
CRUDデータへのアクセス許可を持っているだけなので、属性thoughtsはそうでなければなりません。CLOBDDL ステートメントを使用できません。
それで、私はORA-00932エラーになりました。
ORA-00932: inconsistent datatypes: expected - got CLOB
私のドメインクラス:
class Question {
    String person
    String thoughts 
    static constraints = {
        thoughts nullable: true
    }
    static mapping = {
        table "Question"
        id name: "person"
        person column: "person"
        thoughts column: "thoughts_person"
        version false
    }
}
どうすれば解決できますか?