Re: Need JOIN

2003-08-24 Thread Alen Ribic
rt.addEqualTo("allProductsForCategory.activate", new Boolean(true)); Query query = new QueryByCriteria(Category.class, crt, true); //DISTINCT Collection results = broker.getCollectionByQuery(query); Collection products = new Vector(); Iterator itr = results.iterator(); while (itr.hasNext()

Re: Need JOIN

2003-08-22 Thread Alen Ribic
lTo("id", new Integer(3)); crt.addEqualTo("allProductsForCategory.activate", new Boolean(true)); Query query = new QueryByCriteria(query, crt, true); //DISTINCT Collection results = broker.getCollectionByQuery(queryByCriteria); -Wally -Original Message- From: Alen Ribic

Need JOIN

2003-08-21 Thread Alen Ribic
Hi All I have a single Category object. This Category object contains a collection of Products of type Vector. Product objects contain a boolean field named 'activate'. I have a method that returns a single category with all products in it's category by category PK. Everything is fine as is but

Re: Is it OK to use JDO now.

2003-08-11 Thread Alen Ribic
I came from a JUG (CTJUG) meeting where JDO was the topic of the day. We had Robin Roos as a guest speaker. (author of Java Data Objects book (isbn: 0-321-12380-8) http://ogilviepartners.com/) He himself indicated that the JDO RI is meant to be merely a working implementation of a current specifica

Re: Setup Question

2003-07-30 Thread Alen Ribic
place your class descriptors there. in other words you should define there class fields to DB table field mappings for persistence, etc. --Alen - Original Message - From: "Durham David Contr 805 CSS/SCBE" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Wednesday, July 30

Re: Build failed 1.0 rc4

2003-07-30 Thread Alen Ribic
resolved. moved parser / transformer jars further up the classpath order. (was using older one) - Original Message - From: "Alen Ribic" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Wednesday, July 30, 2003 10:11 AM Subject: Re: Buil

Re: Build failed 1.0 rc4

2003-07-30 Thread Alen Ribic
-Alen - Original Message - From: "Alen Ribic" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Wednesday, July 30, 2003 9:43 AM Subject: Re: Build failed 1.0 rc4 > Oops again. > > It'

Re: Build failed 1.0 rc4

2003-07-30 Thread Alen Ribic
Oops again. It's not that classes are not found it's the provider. javax.xml.transform.TransformerFactoryConfigurationError: Provider for javax.xml.transform.TransformerFactory cannot be found --Alen - Original Message ----- From: "Alen Ribic" <[EMAIL PROTECTE

Build failed 1.0 rc4

2003-07-30 Thread Alen Ribic
Hi all I'm building 1.0 rc4 from source now on JDK 1.3. I got the code switch issues update in my source which works fine now. However I don't know if this is a problem or not but I couldn't build source successfully using JDK 1.3 due to the build looking for the javax.xml package specific classe

Re: Setup ojb 1.0 rc4

2003-07-29 Thread Alen Ribic
Oops, excuse my previous type "ojb 1.1 rc4" ;) --Alen - Original Message ----- From: "Alen Ribic" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Tuesday, July 29, 2003 3:14 PM Subject: Setup ojb 1.1 rc4 > Hi all > >

Setup ojb 1.1 rc4

2003-07-29 Thread Alen Ribic
Hi all I have just build the new release of OJB and now I wish to setup my DB settings. I'm going to be using MS SQL Server 2000 at this moment and I wanted to find out what driver I should use that is free of charge. The build.properties file has the following comments: # use the mssqldb-JSQLCon

Re: OJB IDE Plugins?

2003-07-25 Thread Alen Ribic
the truth: I'm doing all > my OJB work with Eclipse. > > But I have also work with IDEA before and I'd prefer to work with it. > Unfortunately it's not for free. That's why I'm using the second best... > > cheers, > Thomas > > Alen Ribic wrote:

Re: [OT] Re: OJB IDE Plugins?

2003-07-25 Thread Alen Ribic
able on my Powerbook. -Brian On Thursday, July 24, 2003, at 03:50 PM, Alen Ribic wrote: > Hi Brian, > > I used Eclipse. > It's very good too! > IDEA is very close to Eclipse from what it has to offer but has some > really > funky things that I love! > Have you had

Re: OJB IDE Plugins?

2003-07-24 Thread Alen Ribic
ly > work on it though =/ > > IIRC Thomas and others are bigger Eclipse fans than IDEA fans (if the > .classpath and .project files actually getting stored in OJB's CVS are > any indication, at least ;-) > > -Brian > > On Thursday, July 24, 2003, at 03:27 PM, Alen

OJB IDE Plugins?

2003-07-24 Thread Alen Ribic
Hey all Started using IntelliJ Java IDE recently. (very nice, worth checking out!) I was wandering if there is any OJB plugin for IntelliJ yet? Thanks --Alen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: Where to find HOWTO for Stored Procedures?

2003-07-24 Thread Alen Ribic
is there. http://cvs.apache.org/viewcvs/db-ojb/xdocs/how-to-work-with-stored-procedure s.xml?rev=1.1&content-type=text/vnd.viewcvs-markup > -Original Message- > From: Alen Ribic [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 24, 2003 1:41 PM > To: OJB Users List >

Re: Where to find HOWTO for Stored Procedures?

2003-07-24 Thread Alen Ribic
res? > Easiest way is probably to get the source and build the documentation > via ant: > > From the project root directory: > > $ant xslt > > HTML output will be put into the target/doc/ directory. > > -Brian > > On Thursday, July 24, 2003, at 02:40 PM,

Where to find HOWTO for Stored Procedures?

2003-07-24 Thread Alen Ribic
Where in CVS can I find the HOWTO on Using OJB with Stored Procedures? Thanks --Alen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Stored Procedures, OJB's friend? ;)

2003-07-24 Thread Alen Ribic
Hi We use db Views and Stored Procedures quite a bit in our developments. I see that OJB works with Views no problem. (from previous posts) Can OJB handle Stored Procedures by any means? If not, could one adjust OJB to do the job? Thanks --Alen "The greatest glory in living lies not in never

Re: huge fan of ojb, huge

2003-07-21 Thread Alen Ribic
> > i know have a dynamic > > persistence mechanism that writes data to any schema > > on the fly. i don't think cmp supports that! This is very interesting! "any schema"? How you going about this? Or should I say what do you mean? Love to know a bit more on this. --Alen - Original Message

Re: New Version 1.2 of OJB Generator

2003-07-01 Thread Alen Ribic
A, nice. I have been using this tool for generating my value objects and basic repository stuff. Thx. --Alen - Original Message - From: "Matthias Roth" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 01, 2003 4:28 PM Subject: New Version 1.2 of OJB Generator > Hi, > I mad

Re: ToDo list very empty

2003-06-25 Thread Alen Ribic
empty: > http://scarab.werken.com/scarab/issues/ > > cheers, > Thomas > > Alen Ribic wrote: > > Hello > > > > Where is the "ToDo" list or is everything done? bugs? new functionality.? > > :-) > > http://db.apache.org/ojb/todo.html shows

ToDo list very empty

2003-06-25 Thread Alen Ribic
Hello Where is the "ToDo" list or is everything done? bugs? new functionality.? :-) http://db.apache.org/ojb/todo.html shows nothing. I just wanted to put some spare time maybe into contribution. ciao --Alen - To unsubscribe, e

Re: Last cache question from me

2003-06-19 Thread Alen Ribic
tected Map objectTable = null; public ObjectCachePerBrokerImpl(PersistenceBroker broker) { objectTable = new HashMap(); // add this cache as permanent listener broker.addListener(this, true); } Cool. Got to love open source. :) --Alen - Original Message - From: "Alen Rib

Re: Last cache question from me

2003-06-19 Thread Alen Ribic
st cache question from me > Hi Alen, > > Alen Ribic wrote: > > Hi again > > > > > > 1. What is the major difference between the two below methods of PB? > > > > removeFromCache(java.lang.Object obj) > > invalidate(Identity oid) > > invalida

Last cache question from me

2003-06-19 Thread Alen Ribic
Hi again 1. What is the major difference between the two below methods of PB? removeFromCache(java.lang.Object obj) invalidate(Identity oid) 2. Also what is the effect of clearCache() as far as performance is concern? 3. Do different broker instances communicate in some way especially when it

Re: Collection of objects cached or something

2003-06-18 Thread Alen Ribic
7:39 AM Subject: Re: Collection of objects cached or something > please post the code snippet that provokes this problem. > I have no idea what could be wrong here. > > All things you describe are covered by testcases... > > > cheers, > Thomas > > Alen Ribic wrote: >

Collection of objects cached or something

2003-06-17 Thread Alen Ribic
Hi all I seem to have a bit of an issue with my objects getting cached that are retrieved from persistence storage using OJB. I have a Category & Product tables. Category bean contains getter method that retrieves a Vector of products that belong to that Category. Product class contains categoryI

Re: Help, wrong table being looked up!

2003-06-16 Thread Alen Ribic
? Does this > make sense? Do you need to query 'give me all BaseBusinessBean'? > If not, don't declare such a descriptor (performance impact, reduce > number of possible id's per extent class - have to extent aware,...). > > regards, > Armin > > - Origina

Re: Help, wrong table being looked up!

2003-06-15 Thread Alen Ribic
a... :) --Alen - Original Message ----- From: "Alen Ribic" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Sunday, June 15, 2003 11:27 PM Subject: Help, wrong table being looked up! > Hi Everyone, > > I seem to be getting a strange prob

Help, wrong table being looked up!

2003-06-15 Thread Alen Ribic
Hi Everyone, I seem to be getting a strange problem in my persistence mechanism using OJB. I'm using OJB ver: 1.0 rc2. I have two value objects named Category and Product. Each have own DB table there are mapped to. (same table names as class names) Both have common fields (Id, description) hence

Re: Problem retrieving class

2003-06-10 Thread Alen Ribic
oops. Sorry everyone. I didn't read the TO address. I thought it was struts mailing list. (I guess I didn't read the post well either) excuse my previous post. :) --Alen - Original Message - From: "Saman Ghodsian" <[EMAIL PROTECTED]> To: "'OJB Users List'" <[EMAIL PROTECTED]> Sent: Tuesd

Re: Problem retrieving class

2003-06-10 Thread Alen Ribic
I've got the same problem on this one. I get the exception in the tag Would love to now how to over come it. I haven't look at it since last night but I will get a chance sometime today. (maybe I'll find out what the problem is, myself :)) --Alen - Original Message - From: "Saman Ghods

Re: tools for coding mappings

2003-06-06 Thread Alen Ribic
Wow!! OJB Console? That will be really helpful. Will it support the auto-generation of SQL DDL and reverse engineering process for java beans and repository file(s) generation? I think I've seen your Struts console in Programming Jakarta Struts, O'Reilly book. Very helpful and efficient :) --Alen

Re: Extent. How to?

2003-06-04 Thread Alen Ribic
="User" > > > >... > > > class="za.co.alen.jfaq.LogonForm" >table="User" > > > >... > > > You should also have a look at the repository_junit.xml, it contains *a > lot* of in

Re: Extent. How to?

2003-06-04 Thread Alen Ribic
r is the > concrete class defining all the persistent attributes. > > > > > >class="za.co.alen.jfaq.User" > table="User" > > > > ... > > > cheers, > Thomas > > Alen Ribic wrote:

Re: Extent. How to?

2003-06-03 Thread Alen Ribic
how can OJB tell if it should be giving > you a User class or a RegisterForm class? Maybe an alternative for you > is to have RegisterForm contain an aggregated User class? This way you > could search for User, then create your RegisterForm class passing the > relevant User class. Just s

Re: Extent. How to?

2003-06-03 Thread Alen Ribic
apping for za.co.alen.struts.RegisterForm in your > repository_user.xml file?? > > Regards, > Raymond Barlow > > Alen Ribic wrote: > > >Hi again > > > >I have sent an email already and got a good reply, but now I have an issue > >with mapping side. >

Extent. How to?

2003-06-03 Thread Alen Ribic
Hi again I have sent an email already and got a good reply, but now I have an issue with mapping side. I have got classes as follows: // JavaBean public class User extends ValidatorForm {} // Struts form bean public class RegisterForm extends User {} Now I just need OJB to recognize RegisteFor

Re: Inheritance issue

2003-06-03 Thread Alen Ribic
ierarchy. > You do it by defining extents. > There is an example for this in repository_junit.xml. > Have a look at definitions for classes Article, BookArticle, CdArticle. > > cheers, > Thomas > > Alen Ribic wrote: > > Hi all > > > > I have a bit of a problem

Inheritance issue

2003-06-02 Thread Alen Ribic
Hi all I have a bit of a problem with inheritance in my application when it comes to storing persistent objects using OJB. I am using Struts in combination with OJB. What I have now is a JavaBean "User" and I have a direct subclass "RegisterForm". What I wanna do is use RegisterForm as my FormBea