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. W

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 othe

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

Re: OJB 1.0.5 release candidate 1 (unofficial)

2008-01-28 Thread Ilkka Priha
Thanks Armin! Seems to work great with our app (MySQL-NT). The only found inconsistency with the previous version was that the default CopyStrategyImpl in ObjectCacheTwoLevelImpl is now final. We apply dynamic persistent Variables, which must be cloned during copying, and have implemented the

Re: Tomcat 5, JNDI, Perm Gen Memory leak

2005-12-11 Thread Ilkka Priha
4.2.2 of PersistenceBrokerFactoryIF? 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

Re: Tomcat 5, JNDI, Perm Gen Memory leak

2005-12-10 Thread Ilkka Priha
Rick 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().shu

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 = PersistenceBrokerFactory.defaultPersi

Problem with schemas in m:n relations

2005-09-13 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 i

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 fi

Re: ThreadLocal causing memory leak

2005-06-09 Thread Ilkka Priha
Thanks a lot Danilo, we've noticed this very same leak but thought it is a Tomcat problem and simply accepted that after 3-5 redeployments the server must be restarted! Your first patch seems to be OK for us as we don't apply proxies either. -- Ilkka Danilo Tommasina wrote: Hi again, and so

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 DB

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 reason

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

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

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: Real world OJB applications

2004-01-10 Thread Ilkka Priha
Here is one other, a web interface to the Microsoft Northwind sample database based on Apache Velocity and OJB: http://ptuuli.myapp.info/ (username = "vieras", password = "vieras") Its not a real application itself, but we've applied the same technology and framework to more complicated databas

Re: Repository descriptors, PBKey and OJB 0.9.9

2003-02-12 Thread Ilkka Priha
. HTH regards, Armin - Original Message - From: "Ilkka Priha" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Tuesday, February 11, 2003 2:42 PM Subject: Re: Repository descriptors, PBKey and OJB 0.9.9 Hi Armin, -- cut -- Current

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

Repository descriptors, PBKey and OJB 0.9.9

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