Clinton Begin (JIRA | 1 Oct 2006 04:22
Picon
Favicon

Closed: (IBATIS-351) Primitive argument type cannot be null(in PropertyAccessPlan. setProperties)

     [ http://issues.apache.org/jira/browse/IBATIS-351?page=all ]

Clinton Begin closed IBATIS-351.
--------------------------------

    Resolution: Invalid
      Assignee: Clinton Begin

There are already two solutions to this, both of which I find more appropriate than the one suggested.  

1) Don't map primitives to nullable columns << PREFERRED

2) Use a nullValue setting in your result map, that's what it's for.

Clinton

> Primitive argument type cannot be null(in PropertyAccessPlan. setProperties)
> ----------------------------------------------------------------------------
>
>                 Key: IBATIS-351
>                 URL: http://issues.apache.org/jira/browse/IBATIS-351
>             Project: iBatis for Java
>          Issue Type: Bug
>          Components: SQL Maps
>    Affects Versions: 2.1.7, 2.2.0
>            Reporter: qxo
>         Assigned To: Clinton Begin
>
> ResultObject  has a Primitive attribute and its result value is null,has problem.
> I fixed this proble as follow:
(Continue reading)

Clinton Begin (JIRA | 1 Oct 2006 04:24
Picon
Favicon

Commented: (IBATIS-53) Support for oracle cursors as resultsets

    [ http://issues.apache.org/jira/browse/IBATIS-53?page=comments#action_12438958 ] 

Clinton Begin commented on IBATIS-53:
-------------------------------------

Alin:

It's worth creating a separate issue for #2.  

As for #1, I'm not really sure what you mean. 

Clinton

> Support for oracle cursors as resultsets
> ----------------------------------------
>
>                 Key: IBATIS-53
>                 URL: http://issues.apache.org/jira/browse/IBATIS-53
>             Project: iBatis for Java
>          Issue Type: New Feature
>          Components: SQL Maps
>            Reporter: Ken Katsma
>            Priority: Minor
>             Fix For: 2.1.0
>
>         Attachments: showcase.txt, showcase_storedprocedure.txt, showcase_storedprocedure1.txt,
SqlExecutor.java, SqlExecutor.java, SqlExecutor.java, SqlExecutor.java
>
>
> iBatis doesn't currently support result sets from functions in Oracle.  A modification to SQLExecutor as
(Continue reading)

qxo (JIRA | 1 Oct 2006 15:44
Picon
Favicon

Commented: (IBATIS-351) Primitive argument type cannot be null(in PropertyAccessPlan. setProperties)

    [ http://issues.apache.org/jira/browse/IBATIS-351?page=comments#action_12438973 ] 

qxo commented on IBATIS-351:
----------------------------

But if result is object, "Use a nullValue setting in your result map"  cannot solve the problem!

> Primitive argument type cannot be null(in PropertyAccessPlan. setProperties)
> ----------------------------------------------------------------------------
>
>                 Key: IBATIS-351
>                 URL: http://issues.apache.org/jira/browse/IBATIS-351
>             Project: iBatis for Java
>          Issue Type: Bug
>          Components: SQL Maps
>    Affects Versions: 2.1.7, 2.2.0
>            Reporter: qxo
>         Assigned To: Clinton Begin
>
> ResultObject  has a Primitive attribute and its result value is null,has problem.
> I fixed this proble as follow:
> public void setProperties(Object object, Object[] values) {
>   	int i = 0;
>     try {
>       Object[] arg = new Object[1];
>       for (i = 0; i < propertyNames.length; i++) {
>         arg[0] = values[i];
>         try {
>         	final Class[] parameterTypes = setters[i].getParameterTypes();
>         	if( null == arg[0] && parameterTypes[0].isPrimitive()){
(Continue reading)

Clinton Begin (JIRA | 2 Oct 2006 06:05
Picon
Favicon

Commented: (IBATIS-351) Primitive argument type cannot be null(in PropertyAccessPlan. setProperties)

    [ http://issues.apache.org/jira/browse/IBATIS-351?page=comments#action_12439037 ] 

Clinton Begin commented on IBATIS-351:
--------------------------------------

Well if that's the case, use rule #1.  There's absolutely NO reason you should be using a primitive.  Use the
object wrapper.  

I can't see any case where you wouldn't have that as a viable option.

Clinton

> Primitive argument type cannot be null(in PropertyAccessPlan. setProperties)
> ----------------------------------------------------------------------------
>
>                 Key: IBATIS-351
>                 URL: http://issues.apache.org/jira/browse/IBATIS-351
>             Project: iBatis for Java
>          Issue Type: Bug
>          Components: SQL Maps
>    Affects Versions: 2.1.7, 2.2.0
>            Reporter: qxo
>         Assigned To: Clinton Begin
>
> ResultObject  has a Primitive attribute and its result value is null,has problem.
> I fixed this proble as follow:
> public void setProperties(Object object, Object[] values) {
>   	int i = 0;
>     try {
>       Object[] arg = new Object[1];
(Continue reading)

Andrey (JIRA | 2 Oct 2006 09:08
Picon
Favicon

Commented: (IBATIS-333) Patch which allow to subsititute property with column name from ResultMap in dynamic sql

    [ http://issues.apache.org/jira/browse/IBATIS-333?page=comments#action_12439053 ] 

Andrey commented on IBATIS-333:
-------------------------------

Ok. I think that exactly that feature is not very impotant (and have some disadvatages),
but some public api to get result mapping will be very usefull. I think :)

> Patch which allow to subsititute property with column name from ResultMap in dynamic sql
> ----------------------------------------------------------------------------------------
>
>                 Key: IBATIS-333
>                 URL: http://issues.apache.org/jira/browse/IBATIS-333
>             Project: iBatis for Java
>          Issue Type: New Feature
>          Components: SQL Maps
>    Affects Versions: 2.2.0
>            Reporter: Andrey
>         Attachments: insertColumnName.patch
>
>
> In situtation, when i need to implement sorting, I need to create such monster, like abator creates for me. But
> if i only need sorting, here should be mapping beetween columns and properties (if they specified explicitly
> in ResultMap). In this case, i can write 
>     <resultMap id="dynamicAccountResult" class="testdomain.Account">
>         <result column="ACC_ID" property="id"/>
>         <result column="ACC_FIRST_NAME" property="firstName"/>
>         <result column="ACC_LAST_NAME" property="lastName"/>
>         <result column="ACC_EMAIL" property="emailAddress"/>
>     </resultMap>
(Continue reading)

Jeff Butler (JIRA | 3 Oct 2006 00:32
Picon
Favicon

Closed: (IBATIS-348) Abator generated Java classes with Special character

     [ http://issues.apache.org/jira/browse/IBATIS-348?page=all ]

Jeff Butler closed IBATIS-348.
------------------------------

    Resolution: Fixed

Fixed in SVN - for Abator 1.0.1

> Abator generated Java classes with Special character
> ----------------------------------------------------
>
>                 Key: IBATIS-348
>                 URL: http://issues.apache.org/jira/browse/IBATIS-348
>             Project: iBatis for Java
>          Issue Type: Improvement
>          Components: Tools
>         Environment: Spring 2.0 M2, AIX 5.1, JDK 1.4, Abator 1.0.0
>            Reporter: Hari Haran Vadivelu
>         Assigned To: Jeff Butler
>            Priority: Minor
>
> There are situation where in a column in database table might have special characters
> Eg- A column with name PVPO# , in such situations the Java source generated has an equivalent field name
with special character
> private String pvpo#;
> This is an exception in Java.
> Abator should be intelligent enough to generate a different field name for Java classes  like one with out
special characters
> private String pvpo;
(Continue reading)

Clinton Begin | 3 Oct 2006 02:44
Picon

New iBATIS Documentation Format

Hi everyone...

In another thread that wasn't appropriately named, we raised the issue of the iBATIS documentation formats.  What caused me to reopen this as a new thread is that someone just recommended APT, which seems very interesting (read and see below for more).

We'd like our documentation tool to meet the following goals:

Developer/Author criteria -- The following are key to maintaining high quality and timely documentation.  Developers need to have a low barrier to documentation.

  • Accessible / freely available to all
  • Easy / familiar
  • Portable / Available for all desktop platforms
  • "Diffable" / Merge / Compare features.
  • Participative / Community Capable
  • Quick Changes / Deployment
User/Reader criteria -- The following ensure that readers of the documentation have options.
  • Printable
  • "Bundlable" with distribution
  • "Downloadable"
  • "Browsable"
  • "Searchable"
  • Multi-format: PDF, HTML -- to achieve the above goals.
Alternatives discussed so far:
  • OpenOffice.org -- currently the choice of iBATIS for Java documentation.  Excels at accessibility, ease of use, but really sucks at participation, quick changes and deployment.  All other criteria are met but not exceeded.
  • DocBook -- currently the choice of iBATIS.NET documentation.  It excels at "diffability" and multi-format including great PDF and HTML output.  But it fails at ease of use / familiarity and therefore participation and quick changes/deployment as well.  All other criteria are met but not exceeded.
  • Confluence.  Excels at Participative and Quick Changes, but fails in many others including Printable, Downloadable, Bundlable.
  • APT: Almost Plain Text.  This would seem to achieve everything.  It's basically what I would call an offline Wiki-style formatted text that can be converted to HTML, PDF, RTF and other formats.  It's free (Apache 1.1 style license), easy (it's plain text with some rules), diffable, easy to change/deploy ("automatable") and could be participative (because it's "automatable").  It can output to all of the formats to achieve all user/reader goals.  Is there something I'm missing?  Or does it sound great?  http://www.xmlmind.com/aptconvert.html
  • Others alternatives I'm forgetting?
Thoughts?

Cheers,
Clinton
Richard Sullivan | 3 Oct 2006 13:31
Picon

Re: New iBATIS Documentation Format

APT looks great.  The "IBatis for Python" crowd will love it ;=)

> Others alternatives I'm forgetting?
The docbook-wiki combination I mentioned in an earlier rant (
http://doc-book.sourceforge.net/homepage/ ).    It basically offers
similar advantages as APT and Confluence.  It is editable directly via
the web, stores everything in docbook format and can generate whatever
format you want.   The downside could be a tough installation. I just
read the install guide - it looks OK as long as you run Red Hat or
Fedora.  The product relies on a plethora of publishing RPMs.  There
is nothing exotic amongst the packages and are probably all availabe
in any RH/FC distro but if you run something else then I guess you are
going to spend many hours figuring out exactly which packages you
need.

g'luck,
Richard
(who is still busy with his first IBatis project and probably about to
unleash a whole bunch of newbie questions soon)

Jeff Butler | 3 Oct 2006 15:15
Picon

Re: New iBATIS Documentation Format

I'm for DOCBOOK.  It much more functional than APT at the cost of some complexity, it's in wide use (something of a standard), it's not really that hard to use, and there are tutorials all over the place.  I believe Larry found that we could get free licenses to a good WYSIWYG tool if someone needs that.
 
From the APT home page:
 
The APT format (Almost Plain Text) is a simple markup language (like HTML) than can be used to write simple article-like documents (like HTML).
 
I don't think our developer's guide could be described as a "simple article-like document".
 
As for the deployment issue...I think DOCBOOK is as automatable as APT - isn't it just a transform?
 
Jeff Butler
 


 
On 10/3/06, Richard Sullivan <itexpert.sullivan <at> gmail.com> wrote:
APT looks great.  The "IBatis for Python" crowd will love it ;=)


> Others alternatives I'm forgetting?
The docbook-wiki combination I mentioned in an earlier rant (
http://doc-book.sourceforge.net/homepage/ ).    It basically offers
similar advantages as APT and Confluence.  It is editable directly via
the web, stores everything in docbook format and can generate whatever
format you want.   The downside could be a tough installation. I just
read the install guide - it looks OK as long as you run Red Hat or
Fedora.  The product relies on a plethora of publishing RPMs.  There
is nothing exotic amongst the packages and are probably all availabe
in any RH/FC distro but if you run something else then I guess you are
going to spend many hours figuring out exactly which packages you
need.

g'luck,
Richard
(who is still busy with his first IBatis project and probably about to
unleash a whole bunch of newbie questions soon)

Clinton Begin | 3 Oct 2006 17:45
Picon

Re: New iBATIS Documentation Format

I've just read the install docs for APT....it's not as bad as DocBook Wiki, but it does rely on LaTex and a couple of other de facto *nix treats. 

Yeesh.  I may be starting to lean towards Confluence or DocBook. 

Depends where the important values are.  Do people care about a single downloadable, printable PDF?  Or do they care more about being able to contribute on a regular basis and get the most up-to-date documentation possible without a full time tech writer?  :-/

We're having the exact same discussion internally at TW.  Obviously there are no perfect solutions.  So we should write one.  ;-)

New OSS project anyone?

Cheers,
Clinton



On 10/3/06, Richard Sullivan <itexpert.sullivan <at> gmail.com> wrote:
APT looks great.  The "IBatis for Python" crowd will love it ;=)


> Others alternatives I'm forgetting?
The docbook-wiki combination I mentioned in an earlier rant (
http://doc-book.sourceforge.net/homepage/ ).    It basically offers
similar advantages as APT and Confluence.  It is editable directly via
the web, stores everything in docbook format and can generate whatever
format you want.   The downside could be a tough installation. I just
read the install guide - it looks OK as long as you run Red Hat or
Fedora.  The product relies on a plethora of publishing RPMs.  There
is nothing exotic amongst the packages and are probably all availabe
in any RH/FC distro but if you run something else then I guess you are
going to spend many hours figuring out exactly which packages you
need.

g'luck,
Richard
(who is still busy with his first IBatis project and probably about to
unleash a whole bunch of newbie questions soon)


Gmane