ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diran Ayandele <Adediran.Ayand...@Sun.COM>
Subject Re: How to use sqlmap to create an object with not empty construnctor
Date Mon, 11 Sep 2006 15:44:36 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000099">
You will also need private properties to map your results into and the
associated getters and setters.<br>
<br>
I'd suggest reading the developers guide available on the ibatis site
first and then asking more detailed and specific questions. Here is a
link to the documentation I use.&nbsp;
<a class="moz-txt-link-freetext" href="http://cvs.apache.org/dist/ibatis/ibatis.java/docs/iBATIS-SqlMaps-2_en.pdf">http://cvs.apache.org/dist/ibatis/ibatis.java/docs/iBATIS-SqlMaps-2_en.pdf</a><br>
<br>
<br>
Diran<br>
<br>
Nathan Maves wrote:
<blockquote
 cite="mid2f55db670609110731s1fbd0ed4ia53be0ae96c4a137@mail.gmail.com"
 type="cite">Ahh how about you just add an empty constructor...
  <br>
  <br>
public TestA() {
  <br>
&nbsp;&nbsp; this("");
  <br>
}
  <br>
  <br>
Problem solved.
  <br>
  <br>
  <br>
On 9/11/06, Anthony Hong <a class="moz-txt-link-rfc2396E" href="mailto:anthony.bin.hong@gmail.com">&lt;anthony.bin.hong@gmail.com&gt;</a>
wrote:
  <br>
  <blockquote type="cite">I have a class,
    <br>
    <br>
class testA() {
    <br>
&nbsp; public testA(String&nbsp; name) {
    <br>
    <br>
}
    <br>
}
    <br>
    <br>
can it be used in result-map, if can how to write result map
    <br>
    <br>
--
    <br>
    <br>
Anthony Hong
    <br>
    <br>
  </blockquote>
</blockquote>
</body>
</html>

Mime
View raw message