title: How to convert boolean (true or false) to string value in groovy?
body: <pre><code>def setOnePlueOne(def user, def booleanValue) {
      updateAnswerAttribute(userRandy, ??????)
      ...
  }
  </code></pre>
  <p>so what I have to do to convert that <code>boolean</code> to string and <code>updateAnswerAttribute</code> as <code>true</code> or <code>false</code> in DB.</p>
  <p>Added getter and setter:</p>
  <pre><code>public Boolean setOnePlueOne() {
      return OnePlueOne;
  }
  public void getOnePlueOne(Boolean onePlueOne) {
      this.onePlueOne = onePlueOne;
  </code></pre>
  <p>Now, I need to convert that (<code>Boolean onePlueOne</code>) in string (<code>true</code> or <code>false</code>) and send it through set method to <code>def booleanValue</code>:</p>
  <pre><code>def setOnePlueOne(def user, def booleanValue) {
      updateAnswerAttribute(userRandy, ??????) 
      ...
  }
  </code></pre>
  <p>this will update or create value in DB.</p>