Datasource JNDI

2010-03-16 Thread phasor
Hi, I´m facing a problem when deploying an extjs app(using ibatis plugin) to oracle application server 10. In sqlmapconfig.xml i´m referencing a jndi datasource that was previously created on AS adding the following configuration to the file: After dep

setNull and default jdbcType

2010-03-16 Thread Bekkum Odd-Rune
Hi. I've used ibatis 2.3.4, and are now starting to use 3.0. I'm using Postgres 8.4. I'm trying to figure out why I have to specify jdbcType on those columns that can be set to null. Why was the default "Types.OTHER" removed? Version 2.3.4: from ParameterMap.java if (jdbcType != JdbcTypeR

integrating lucene with ibatis - advice wanted

2010-03-16 Thread Andrius Juozapaitis
Hey guys, I created a framework I plan to use for a few projects in-house, using ibatis 3. I enjoy the separation of sql, mapping and domain objects, but I have a pretty complex domain model (first class objects may have any number of attributes, hierarchical if neccessary), so writing sql and tak

Re: Datasource JNDI

2010-03-16 Thread Richard Yee
Bruno, Remove java:comp/env from your datasource name in sqlmapconfig and data-sources.XML Richard Sent from my iPhone On Mar 16, 2010, at 4:08 AM, phasor wrote: Hi, I´m facing a problem when deploying an extjs app(using ibatis plugin ) to oracle application server 10. In sqlmapconf

Re: setNull and default jdbcType

2010-03-16 Thread Clinton Begin
Thanks. A few others have reported this, but until now I didn't understand what was happening. It's unusual for Postgres to allow Types.OTHER for setNull. Indeed I did remove that code. I don't think it should be a problem to put it back. I'll try to commit something tonight, and if you're wil

Re: Datasource JNDI

2010-03-16 Thread phasor
I have already tried deploying without the com/env but the problem remains. Thank you richard Richard Yee wrote: > > Bruno, > Remove java:comp/env from your datasource name in sqlmapconfig and > data-sources.XML > Richard > > Sent from my iPhone > > On Mar 16, 2010, at 4:08 AM, phasor

Re: integrating lucene with ibatis - advice wanted

2010-03-16 Thread Simone Tripodi
Hi Andrius, very nice to meet you and congratulations for the idea, I fount it brilliant. These are just my 2 cents. generally speaking, I'd suggest you to implement the solution number 1: 1 interceptor and 1 annotation, nothing more, clear and reusable solution; 2 is also great and easy to impleme

Re: Datasource JNDI

2010-03-16 Thread Clinton Begin
Did you try writing a quick pure java test to see if it's the jndi config or something else? On 2010-03-16, phasor wrote: > > Hi, > > I´m facing a problem when deploying an extjs app(using ibatis plugin) to > oracle application server 10. > In sqlmapconfig.xml i´m referencing a jndi datasource th

Re: integrating lucene with ibatis - advice wanted

2010-03-16 Thread Andrius Juozapaitis
Simone, Thanks for the compliments, this functionality is by no means complete, and it's currently a part of a reasonably proof-of-concept (smartgwt-gwtrpcdatasource-gwtdispatcher (command pattern for gwt)-business logic in spring/jms/aspects/springmvc/spring security/etc-lucene-ibatis-postgres),

Re: integrating lucene with ibatis - advice wanted

2010-03-16 Thread Ashok Madhavan
did you look at compass ( http://www.compass-project.org/). as per their documentation hey already have ibatis + lucene covered. ( maybe it is ibatis 2.x ). regards ashok On Tue, Mar 16, 2010 at 9:57 AM, Andrius Juozapaitis wrote: > Simone, > Thanks for the compliments, this functionality is by

Re: integrating lucene with ibatis - advice wanted

2010-03-16 Thread Andrius Juozapaitis
I actually did look at it - but I didn't like the API, and it seemed a bit heavyweight for me. Simple lucene is enough for my needs, so I didn't add that much of effort to get it running. Their forums aren't that active on this topic either. Might take a second look though - thanks! regards, Andri

RE: setNull and default jdbcType

2010-03-16 Thread Bekkum Odd-Rune
Hi. To get it to work I've added :OTHER on all INSERT and UPDATE statements. I can do check out and build and test it tomorrow. I've created Jira ticket IBATIS-762. Thanks, Odd-Rune. Thanks. A few others have reported this, but until now I didn't understand what was happening. It's unusual fo

Composite key problems in column attribute (again)

2010-03-16 Thread Hermit Geek
I know this has been addressed before but it's still not working for me. I'm developing an application pro bono for the local community college. It was mostly working in Ibatis 2 and then when I migrated to 3, my composite keys would no longer work. I'm currently in Ibatis 3, beta 10. Below is a

Re: Composite key problems in column attribute (again)

2010-03-16 Thread Guy Rouillier
You haven't specified the parameterType for the nested getDisabilityList select statement. So, iBATIS defaults the best it can to type Object. You then try to set two properties on that Object, autoID and semester. Object doesn't have such properties, hence the error message. Specify an para

Re: setNull and default jdbcType

2010-03-16 Thread Clinton Begin
Fixed. Give it a try. Clinton On Tue, Mar 16, 2010 at 12:28 PM, Bekkum Odd-Rune wrote: > Hi. > > To get it to work I've added :OTHER on all INSERT and UPDATE statements. > I can do check out and build and test it tomorrow. > I've created Jira ticket IBATIS-762. > > Thanks, > Odd-Rune. > > Thank