Repository descriptors, PBKey and OJB 0.9.9

2003-02-11 Thread Ilkka Priha
and RepositoryPersistor, but without much luck. -- Ilkka Priha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Repository descriptors, PBKey and OJB 0.9.9

2003-02-11 Thread Ilkka Priha
Hi Armin, -- cut -- Currently there are only methods to add ClassDescriptors, add runtime. I think to realize that functionality we need merge methods for DescriptorRepository and ConnectionRepository: MetadataManager.mergeDescriptorRepository(DescriptorRepository newRepository) Is this

Re: [bug / rc6] size-method of RsIterator generates incorrect SQL res ulting in SQLException

2004-04-06 Thread Ilkka Priha
Actually, all addGroupBy and addOrderBy methods in Criteria object have already been deprecated since RC2 and replaced by the corresponding methods in the Query object... -- Ilkka Janssen, Roger wrote: Hi, personally I'm very busy with other OJB stuff and Jakob the query-guru is on vacation

Re: [bug / rc6] size-method of RsIterator generates incorrect SQL res ulting in SQLException

2004-04-07 Thread Ilkka Priha
Hmm, you're right, but maybe that one should also be deprecated. Both addOrderByAscending(field) and addOrderByDescending(field) were deprecated in 1.25 and replaced by the corresponding Query methods (as were all GroupBy methods). They still call internally addOrderBy(name,direction), which

Re: AW: Can not init Identity for given object

2004-06-08 Thread Ilkka Priha
Hi, I just had the same exception with mysql for a totally different reason. When I updated from 4.1.1-alpha to 4.1.2-alpha in Windows without changing the db, OJB couldn't read the ojb_hl_seq table causing inserts violating the primary key constraint and thus failing to generate pks. The

Re: Cache errors?

2005-02-10 Thread Ilkka Priha
Hi Ernst, OJB version 1.0.1 has a bug in hash codes of ObjectCacheDefaultImpl making it act like you noticed. Try some other cache implementation, version 1.0 or 1.0.2 pre from cvs. -- Ilkka Ernst Temp wrote: Hello, I am using OJB in my application (Mysql 4.1, Java 1.4.1, Mac OS X) mainly as

Re: Problem with Oracle10g

2005-06-29 Thread Ilkka Priha
See this: http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#08_01 -- Ilkka JML (Brujula) wrote: Hi! I have encountered with a problem when I have changed from Oracle9i to Oracle10g. This code work correctly with 9i: Timestamp tmp = (Timestamp)row[7]; row[7] is a

Problem with schemas in m:n relations

2005-09-14 Thread Ilkka Priha
Hello This problem has been discussed earlier (Edson Richter/m:n mappings), but it seems to be still there and I didn't find anything about it in Jira. Maybe I'm missing something, but the problem is that OJB generates a query that doesn't work in all DB platforms for collections applying an

Re: Tomcat 5, JNDI, Perm Gen Memory leak

2005-12-09 Thread Ilkka Priha
Hi Rick, Have you tried this one, it alone should do the job. PersistenceBrokerFactoryFactory.instance().shutdown(); -- Ilkka Rick Roman wrote: Update: From other threads, I have tried using a contextDestroy listener to run: PersistenceBroker broker =

Re: Tomcat 5, JNDI, Perm Gen Memory leak

2005-12-10 Thread Ilkka Priha
Roman wrote: Hi Ilkka, shutdown() does not appear to be a method of PersistenceBrokerFactoryFactory.instance(). Is there a patch with this available? Ilkka Priha wrote: Hi Rick, Have you tried this one, it alone should do the job. PersistenceBrokerFactoryFactory.instance().shutdown

Re: Tomcat 5, JNDI, Perm Gen Memory leak

2005-12-11 Thread Ilkka Priha
? I'm having trouble locating it. Ilkka Priha wrote: Rick, It was introduced in revision 1.4.2.2 of PersistenceBrokerFactoryIF (25/07/05), so it's available only in the cvs version of OJB, but hopefully quite soon also as 1.0.4-rc. -- Ilkka /** * Shutdown method for OJB, kills all running

Re: OJB Deadlock due to reference descriptor

2008-08-20 Thread Ilkka Priha
OJB fully supports mapping of several classes to the same table. In this case, you'll read the same data into two data structures being kind of reflections of each other. -- Ilkka SUMIT JAIN wrote: I am using OJB with java 1.5 I have done the following mapping class-descriptor

Re: OJB Deadlock due to reference descriptor

2008-08-20 Thread Ilkka Priha
Oops, the tables are not the same, so Roger's reply gives a better answer. -- Ilkka Ilkka Priha wrote: OJB fully supports mapping of several classes to the same table. In this case, you'll read the same data into two data structures being kind of reflections of each other. -- Ilkka SUMIT

Re: Future development

2009-06-10 Thread Ilkka Priha
We prefer OJB:s compact size, explicit control of caching, clear structure and functionality, and especially the ability to dynamically modify the persistence model through the API during run-time without disturbing open sessions; Hibernate lacks most of these features and JPA is too limited.