Re: removal aware list

2006-09-21 Thread Edson Carlos Ericksson Richter
SVN (OJB_1_0_RELEASE branch). Could you exactly describe how to reproduce your problem. regards, Armin regards, Dennis 2006/9/19, Edson Carlos Ericksson Richter < [EMAIL PROTECTED]>: As name said, it's a "Removal Aware". If you don't wish objects removed, don'

Re: removal aware list

2006-09-19 Thread Edson Carlos Ericksson Richter
As name said, it's a "Removal Aware". If you don't wish objects removed, don't use "RemovarAware". The default implementation is not "RemovalAwareList", so it's sufficient to remove the specific implementation on mapping. IT: some older versions of OJB used RemovalAwareList as default - so, p

Re: Deleting items in collection?

2006-08-24 Thread Edson Carlos Ericksson Richter
I've been using RemovalAwareList in the descriptor, so I don't need to take care of this in coding. Regards, Richter Carlos Chávez escreveu: Sebastian Stein escribió: Vasily Ivanov <[EMAIL PROTECTED]> [060821 23:46]: if I delete an ClassB object from the collection in ClassA and store t

[Fwd: Info: Geänderte Mail-Adresse / C hanged email-Address]

2006-08-01 Thread Edson Carlos Ericksson Richter
Please, guys, kick off this guy from the list! Regards, Richter Mensagem original Assunto:Info: Geänderte Mail-Adresse / Changed email-Address Data: Tue, 1 Aug 2006 15:15:05 +0200 De: [EMAIL PROTECTED] Para: Edson Carlos Ericksson Richter <[EMAIL PROTEC

Re: OJB hang

2006-08-01 Thread Edson Carlos Ericksson Richter
Unique case I've found OJB hang is because of unfinalized transactions (so it's a database problem, not OJB ones). I had situations where I query tables with almost 1 milion records, without problem (I've used MaxDB, on linux and windows, MsSQL, on windows and Oracle 10g on linux and windows).

Re: Bug in OJB 1.0.3 (MS SQL violation constraint on cascaded table)

2006-06-15 Thread Edson Carlos Ericksson Richter
No news if this is confirmed against 1.0.4? Richter Edson Carlos Ericksson Richter escreveu: Hi! I discovered an interesting (bug?) behaviour in OJB 1.0.3. I am using auto-commit false for every connection. When I store an object that has an list with cascade all, but one object in the list

[Fwd: Returned mail: see transcript for details]

2006-06-02 Thread Edson Carlos Ericksson Richter
Could list admin kick off this guy? His mail doesn't exists anymore, and every time I send mails to the list I get auto-response saying "domain changed"... Richter Mensagem original Assunto:Returned mail: see transcript for details Data: Fri, 2 Jun 2006 14:45:40 -0

Bug in OJB 1.0.3 (MS SQL violation constraint on cascaded table)

2006-06-02 Thread Edson Carlos Ericksson Richter
Hi! I discovered an interesting (bug?) behaviour in OJB 1.0.3. I am using auto-commit false for every connection. When I store an object that has an list with cascade all, but one object in the list fail to store, then I got "Primary Key violation - attempt to insert duplicate key on PRIMARY_TA

Re: Error in beginTransaction!

2006-05-16 Thread Edson Carlos Ericksson Richter
I don't know if this affects you, but I have serious trouble with maxIdle < 2... So I always set it to 2 or greather... Since you configured to use TestOnBorrow, check query you are using to make this test. I use something like "select 1 from DUAL" in Oracle databases, and "select 1" in MS SQL.

Re: Avoiding Persistence Broker Leak

2006-05-05 Thread Edson Carlos Ericksson Richter
I've used a similar solution, but when I get a broker, first I check if one broker was already taken for this thread (and a usage counter is incremented). Then, when I start one operation, I just check if there is not already a transaction. If there is no transaction, then I open one. Finally, w

Re: Procedure based sequencence generator repeating values (SOLVED)

2006-05-05 Thread Edson Carlos Ericksson Richter
e for a Swing/OJB app), each with about 1Gb of data. Thanks to you all, I expect this report helps anyone trying to work with SQL Server + OJB + autonumbering + several simultaneous users + heavy transactional control under PB API. Richter Edson Carlos Ericksson Richter escreveu: Ok

Re: Procedure based sequencence generator repeating values (MAYBE SOLVED)

2006-04-28 Thread Edson Carlos Ericksson Richter
Server 2005 latest release. Someone knows what is going on? Any tips, please!!! Richter Edson Carlos Ericksson Richter escreveu: Hi! I'm still with this problem. Could someone say if SequenceManagers use default connection present at current thread? Or it's executed inside sam

Re: Procedure based sequencence generator repeating values

2006-04-28 Thread Edson Carlos Ericksson Richter
knows what is going on? Any tips, please!!! Richter Edson Carlos Ericksson Richter escreveu: Hi! I'm still with this problem. Could someone say if SequenceManagers use default connection present at current thread? Or it's executed inside same transaction (I don't k

Re: Procedure based sequencence generator repeating values

2006-04-28 Thread Edson Carlos Ericksson Richter
Hi! I'm still with this problem. Could someone say if SequenceManagers use default connection present at current thread? Or it's executed inside same transaction (I don't know if this implies same connection)? Thanks for any clarifications! Richter Edson Carlos Er

Re: Procedure based sequencence generator repeating values

2006-04-24 Thread Edson Carlos Ericksson Richter
Armin Waibel escreveu: Hi, I'm not a database expert, so please forbear with me ;-) Edson Carlos Ericksson Richter wrote: Hi! There is a very long time since my last problem with OJB - thank you guys, it's awesome how good work was done until now. In last month, I was migrating f

Procedure based sequencence generator repeating values

2006-04-22 Thread Edson Carlos Ericksson Richter
Hi! There is a very long time since my last problem with OJB - thank you guys, it's awesome how good work was done until now. In last month, I was migrating from Oracle to MS SQL, and changed from Sequence Manager Oracle native to Procedure based on MS SQL. Worked great on tests, but when in p

Re: Anyone using Generics?

2006-02-23 Thread Edson Carlos Ericksson Richter
I'm just migrating a quite large app (about 300Kloc) to 1.5 and focus is using generics. In our case, app was split in several (6) layers, one is specialized in persistence. So, we make persistence layer return generyfied collections and add @SuppressWarnings(value={"unchecked"}) on these classe

Re: Oracle 10g compliance

2006-02-21 Thread Edson Carlos Ericksson Richter
I've a OJB 1.0.3 running either Oracle 10 XE and SQL 2005 Express without changin a line of code... OJB rocks! Richter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Profiling OJB

2006-02-08 Thread Edson Carlos Ericksson Richter
Hi! I'm running OJB under NetBeans 5.0 final with JDK 1.5.0_06 and NetBeans Profiler 5.0, OJB 1.0.3. I just run the app, and I see RepositoryPersistor.readMetadataFromXML(org.xml.sar.InputSource, class) is called twice, taking incredible 5561 ms for execution (a 2780ms per call). It's numbe

Re: Can OJB Be Built w/GCJ 3.3.x?

2005-12-02 Thread Edson Carlos Ericksson Richter
Notes: 1) SapDB/MaxDB driver don't compile if you just download sources. You need to strip out encription and native portions. 2) Compiled SapDB/MaxDB driver is slower than Java version... I've used GCJ that comes with Fedora distro, and used -o, -o2 -o3. No make diff for performance. Compile

Re: handling really large collections

2005-10-19 Thread Edson Carlos Ericksson Richter
I don't know what is your UI (JSP, Swing or JasperReports), but I'll share my experience: 1) Yes, OJB could handle collections as large as 660.000 records (yes, 660Krecords!!!) - using proxies, of course, and sometimes tweaking some -Xmx, -Xms and other memory options of the VM. I've used it t

Re: OJB 1.0.x and Java5.0

2005-08-08 Thread Edson Carlos Ericksson Richter
I'll try that example with OJB... Thanks, Edson Richter Thomas Dudziak escreveu: On 8/8/05, Edson Carlos Ericksson Richter <[EMAIL PROTECTED]> wrote: Let me expand my idea (sorry if I get boring). I have a User object. Each user has a LoginHour list. So, using JDK 5.0 coul

Re: OJB 1.0.x and Java5.0

2005-08-08 Thread Edson Carlos Ericksson Richter
to be changed on class-descriptor, neihter in collection-descriptor? TIA, Edson Richter Thomas Dudziak escreveu: On 8/8/05, Edson Carlos Ericksson Richter <[EMAIL PROTECTED]> wrote: Anyone has an example about how could OJB be used with Generics? This will not affect the class-m

Re: OJB 1.0.x and Java5.0

2005-08-08 Thread Edson Carlos Ericksson Richter
Carlos Ericksson Richter MGR Informática Ltda. Fones: 3347-0446 / 9259-2993 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: a problem about oracle connection leak

2005-05-24 Thread Edson Carlos Ericksson Richter
__ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Edson Carlos Ericksson Richter MGR Informática Ltda. Fones: 3347-0446 / 9259-2993

1.0.0 -> 1.0.3 differences (log)

2005-05-24 Thread Edson Carlos Ericksson Richter
g dynamic attributes and references). Could someone point me to a change log or something else (if exists), or if this not exist, just tell me - so I don't stay looking for something that I'll never find ;-) TIA, -- Edson Carlos Ericksson Richter MGR Informática Ltda. Fones: 3

Too slow for startup

2005-03-22 Thread Edson Carlos Ericksson Richter
Edson Carlos Ericksson Richter MGR Informática Ltda. Fones: 3347-0446 / 9259-2993 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Vulnerabilities

2004-12-22 Thread Edson Carlos Ericksson Richter
--- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Edson Carlos Ericksson R

Re: Advice on using OJB collections and Struts

2004-12-20 Thread Edson Carlos Ericksson Richter
nd http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Edson Carlos Ericksson Richter MGR Informática Ltda. Fones: 3347-0446 / 9259-2993 ---

Complex query with exists

2004-12-16 Thread Edson Carlos Ericksson Richter
e XML mapped tables. mTonTable is a implicit M:N mapping table. Thanks for any tips. -- Edson Carlos Ericksson Richter MGR Informática Ltda. Fones: 3347-0446 / 9259-2993 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: Null values

2004-12-03 Thread Edson Carlos Ericksson Richter
You gave me a good idea. I'll create a specialized Persistent field for debugging purposes inside my project. Thankyou, Edson Richter Thomas Dudziak escreveu: Edson Carlos Ericksson Richter wrote: It's not a OJB problem. I'm just looking if OJB could help me find bugs intr

Re: Null values

2004-12-03 Thread Edson Carlos Ericksson Richter
ching for this kind of app bug. Nothing that I can't debug and try to find using a trace or P6Spy, but in a schema with more than 200 tables, 2000 fields, and 1400 classes, it definitelly could be easier. Thankyou for fast reponse, Edson Richter Thomas Dudziak escreveu: Edson Carlos Ericksson R

Null values

2004-12-03 Thread Edson Carlos Ericksson Richter
Hi! I having several problemas with database in NULL values area. If I inform in XML what fields allow XML and what not, OJB will warn me if I forgot to fill some field? If yes, is this a sanity check that can be enabled/disabled? Thanks, Edson Richter ---

Re: Profiling OJB

2004-12-01 Thread Edson Carlos Ericksson Richter
e direct access and/or auto-proxy? I need to make fields public? Of course you is right. Time spent in each call is really small (about - average - 39,86 ms for setValueFor and 43,09 ms for getValueFrom - but I still fell it's high). Thanks for fast response. Richter Thomas Dudziak es

Profiling OJB

2004-12-01 Thread Edson Carlos Ericksson Richter
Hi! I'm just testing our large app using NetBeans Profiler (JFluid), and found that most time my app is spending in setValueFor (41%) and getValueFrom (13%) in PersistentFieldIntrospectorImplNew class. Someone knows if any other Persistent* class is faster? Thanks for any info share, Edson Richt

Re: Connection broken

2004-11-25 Thread Edson Carlos Ericksson Richter
I'll do checks and answer in a few hours (it take few hours to I get the error again - it's not determinate). Thank you for directions. Richter Armin Waibel escreveu: Hi Edson, Edson Carlos Ericksson Richter wrote: Hi, guys. I'm deploying a really big app written using OJB

Connection broken

2004-11-25 Thread Edson Carlos Ericksson Richter
Hi, guys. I'm deploying a really big app written using OJB (today is about 36 loc), that uses MaxDB as database server. I've a test connection query (select 1 from DBA.DUAL), and it works. But after some time of work (about 4 hours of continuous use), OJB loose one connection, and never get

Re: OJB in Tomcat

2004-11-25 Thread Edson Carlos Ericksson Richter
Have you tryied NetBeans 3.6? I'm using OJB without problems, in standalone and web apps with 3.6. I know NetBeans 4 B2 has some flaws in this area... I think you test latest Q build too.. Richter - To unsubscribe, e-mail: [EMAI

[OT]Sorry to the community

2004-11-24 Thread Edson Carlos Ericksson Richter
I must to say sorry to this great community, by my last mails to Mr. Ilias Laziradis (not sorry to Mr. Laziradis itself). In this context, I need to open a parentesis, and sintetize my frustation when trying to help people who want's no help. Some time ago, the same Mr. Ilias Laziradis started a

Re: [QUICKSTART] - A OJB quickstart similar to hibernate

2004-11-24 Thread Edson Carlos Ericksson Richter
I'm sorry, I sent additional response before read your ask. I'm stoping right now. Best regards, Edson Richter Jakob Braeuchi escreveu: hi all, i think it's time to stop this thread. jakob - To unsubscribe, e-mail: [EMAIL PROTECTE

Re: [QUICKSTART] - A OJB quickstart similar to hibernate

2004-11-24 Thread Edson Carlos Ericksson Richter
to get it working, and contributing code to the project, and sharing experiences with begginers. Best regards, Edson Richter Ilias Lazaridis escreveu: Edson Carlos Ericksson Richter wrote: Unfortunatelly to behavior of Mrs. Laziradis, I fell in obligation to share this info in this mail list too. I

Re: [QUICKSTART] - A OJB quickstart similar to hibernate

2004-11-24 Thread Edson Carlos Ericksson Richter
Unfortunatelly to behavior of Mrs. Laziradis, I fell in obligation to share this info in this mail list too. I'll do this because, as occured at other mail list, communications starts to degrade, making too much noise for about nothing. This info was shared from another user, in another mail lis

Re: [QUICKSTART] - A OJB quickstart similar to hibernate

2004-11-24 Thread Edson Carlos Ericksson Richter
Huh, you started again with this "failure" thing. Start to learn something, or you will always be a failure. I'm patiently seen you make same noise you made in NetBeans mail lists... I think you want a "wizard that make all you want withou knowing anything about java - except that there is a langu

Re: [QUICKSTART] - A OJB quickstart similar to hibernate

2004-11-23 Thread Edson Carlos Ericksson Richter
va documentation. Without them, you could not startup anything in Java land. Edson Richter Ilias Lazaridis escreveu: Edson Carlos Ericksson Richter wrote: Check "Java Tools documentation" in Java docs (downloaded separately). [I'm not interested in the documentation, but in the desig

Re: [QUICKSTART] - A OJB quickstart similar to hibernate

2004-11-23 Thread Edson Carlos Ericksson Richter
Read basic Java documentation from Sun (link "Tool docs"). Edson Richter Ilias Lazaridis escreveu: Thomas Dudziak wrote: Ilias Lazaridis wrote: [...] What is the reason, that java -cp build\classes;lib\*.jar org.apache.ojb.tutorial1.Application java -cp build\classes;lib\* org.apache.ojb.tutor

Re: [QUICKSTART] - A OJB quickstart similar to hibernate

2004-11-23 Thread Edson Carlos Ericksson Richter
Check "Java Tools documentation" in Java docs (downloaded separately). As I said before, is hard to tech Java in some kind of mail lists (as either in NetBeans mail lists)... First step you should do, to do what you want, is learn Java (not only language, but plataform too). Second is learn tool

Re: [SUGGESTION] - S02 - Answering behaviour on this forum

2004-11-16 Thread Edson Carlos Ericksson Richter
Hi, Ilias. Good to see you here (too). I'm following OJB project sice beta days, and I just reporting that some threads are not answered because they are in the docs AND/OR are avaliable in past threads. My experience at OJB mailing lists is that valid threads, and that are not already answered

Friendly messages

2004-11-10 Thread Edson Carlos Ericksson Richter
Is there any chance to add the classname (or table name or query executed) when the following error occur? org.apache.ojb.broker.PersistenceBrokerSQLException: com.sap.dbtech.jdbc.exceptions.DatabaseException: [-4005] (at 988): Unknown column name:SITUACAO Thanks, Edson Richter ---

Will have Ojb new release near???

2004-11-09 Thread Edson Carlos Ericksson Richter
Hi! I just want to ask for a "1.0.2" release of OJB with latest fixes... Is there any plans? Best regards, Edson Richter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Regd Updating Selected Columns

2004-10-19 Thread Edson Carlos Ericksson Richter
Just my 2c (dont blame me if it's too simplistic): I've implemented "selective updates" in current OJB 1.0.1 creating two beans to same table. I 've used PropertyUtils.copyProperties to transport info from one bean to another. This will work for references, collections supers and so on. To let y

Re: SQLExcpetion

2004-10-11 Thread Edson Carlos Ericksson Richter
If you try to copy large files between machines, you get Connection Reset (or connection reset by peer, in some OSes)??? If so, you get a trahsed network card or network hub... I had this problem some time ago, and I had to exchange a hub with some ports "burned", sending trash in my network...

Re: Patch: DB2 BigDecimal problem (truncation occurs and data is lost)

2004-08-18 Thread Edson Carlos Ericksson Richter
Is this the latest driver (7.5.xxx)? I've seen a message in MaxDB list about bug in JDBC driver concerning decimal precision and nasty roundings... My2c, Richter Em Qua, 2004-08-18 às 15:55, Armin Waibel escreveu: > Hi Jason, Stuart, > > it's an really nasty issue! If I apply 'option 3' > > >

Re: XDoclet & empty .xml

2004-08-12 Thread Edson Carlos Ericksson Richter
i, 2004-08-12 às 04:10, Thomas Dudziak escreveu: > Edson Carlos Ericksson Richter wrote: > > > I'm shamed. My files are not being processes because I had spaces around > > equals sign. Like this: > > > > /** @ojb.class table = "TB1" */ > >

Re: XDoclet & empty .xml

2004-08-11 Thread Edson Carlos Ericksson Richter
Hi! I'm shamed. My files are not being processes because I had spaces around equals sign. Like this: /** @ojb.class table = "TB1" */ correcting to this: /** @ojb.class table="TB1" */ worked fine. Thanks, Richter Em Ter, 2004-08-10 às 18:13, Thomas Dudziak

Re: XDoclet & empty .xml

2004-08-10 Thread Edson Carlos Ericksson Richter
Em Ter, 2004-08-10 às 16:52, Thomas Dudziak escreveu: > Edson Carlos Ericksson Richter wrote: > > > Of course, I already updated with latest from CVS. > > No need to, there were no changes to the XDoclet module since 1.0 final. > > >>I've updated to OJB 1.0 a

Re: XDoclet & empty .xml

2004-08-10 Thread Edson Carlos Ericksson Richter
Of course, I already updated with latest from CVS. And more one detail: I'm using NetBeans 3.6 with Ant 1.6.1. Thanks for any tips, Richter Em Ter, 2004-08-10 às 16:24, Edson Carlos Ericksson Richter escreveu: > Hi! > > I've updated to OJB 1.0 and now I'm trying OJB do

XDoclet & empty .xml

2004-08-10 Thread Edson Carlos Ericksson Richter
Hi! I've updated to OJB 1.0 and now I'm trying OJB doclet module. I already documented some classes with ojb.class and so on, but I always get an empty .xml file with only 2 lines of commets. There is no error message, only ones like INFO: Some classes refer to other classes that were not found a

auto-delete='object' and RemovalAware...

2004-08-09 Thread Edson Carlos Ericksson Richter
Hi! I want to know if I use auto-delete='object' in my collection descriptor, and still need to define the collection-class='RemovalAwareSomething' as I used in the past? Thanks. Richter - To unsubscribe, e-mail: [EMAIL PROTECTE

Re: Doclet & OJB 1.0

2004-08-06 Thread Edson Carlos Ericksson Richter
You are absolutely right! I had an old db-ojb-1.0rc6 jar lost my jurassic classpath... Thanks, Richter Em Qui, 2004-08-05 às 17:02, Thomas Dudziak escreveu: > Edson Carlos Ericksson Richter wrote: > > > I`m upgrading today from rc6 to 1.0, but I can't get OJB Doclet runni

Doclet & OJB 1.0

2004-08-05 Thread Edson Carlos Ericksson Richter
Hi! I`m upgrading today from rc6 to 1.0, but I can't get OJB Doclet running. Always I get Can't create a ojbrepository element under ojbdoclet. Make sure the jar file containing the corresponding subtask class is on the classpath specified in the that defined {2}. The taskdef is: And all

Re: Res: Re: addOrderBy

2004-07-30 Thread Edson Carlos Ericksson Richter
I use Criteria crit = new Criteria(); crit.addEqualTo("nf", nf); QueryByCriteria q = new QueryByCriteria(Note.class, crit); q.addOrderByAscending("company.type"); Richter Em Sex, 2004-07-30 às 11:45, Glauber Andrade escreveu: > I don´t understand... > What should I do ? > > Criteria crit = n

Re: addOrderBy

2004-07-30 Thread Edson Carlos Ericksson Richter
I think you should create a QueryByCriteria, and the use the addOrderBy on the query. Richter Em Sex, 2004-07-30 às 11:19, Glauber Andrade escreveu: > Hello, > > I was using rc5 and I changed to 1.0.0 today. > > I use Criteria.addOrderBy() and now it has been deprecated. How do I > order ?? >

Re: Still my Problem with the PercistanceBroker

2004-07-09 Thread Edson Carlos Ericksson Richter
Some old versions of Oracle have a trouble with resultsets & cursors... I faced this problem, and the unique solution I've found was close first the resultset, then the statement (that releases cursors) and finally, the connection. I don't know how OJB closes connections (and statements, and resul

Re: OJB map

2004-06-24 Thread Edson Carlos Ericksson Richter
Of course, you can. Sim, você pode. Richter Volnei wrote: Obrigado, Bom eu realmente não sou um expert em inglês, porém eu sou novato em OJB e não gostaria de incomodá-lo sempre que eu tiver uma dúvida boba. Mais, se puder ajudar ficaria muito grato. A dúvida é a seguinte: Se eu tiver uma tabela

Re: [ANN] OJB 1.0rc7 Released

2004-06-15 Thread Edson Carlos Ericksson Richter
To me, default doesn't matters... Just be really clear in DOCS that the changes are made, because I've a near to 265000 loc here that uses either RemovalAware and Non-RemovalAware behaviour... Best regards, Edson Richter Armin Waibel wrote: Steve Clark wrote: Armin Waibel writes: Armin> oo

Re: clear() && collection proxy && RemovalAware

2004-04-29 Thread Edson Carlos Ericksson Richter
ch (Exception e) { coll = new ArrayList(); } setData(coll); _size = 0; } } Could someone cofirm/fix this in CVS? Thanks, Edson Richter Edson Carlos Ericksson Richter wrote: I think I and a co-worker (Igor) found a little bug in collection proxy. When usi

Re: clear() && collection proxy && RemovalAware

2004-04-27 Thread Edson Carlos Ericksson Richter
e = 0; } } Could someone cofirm/fix this in CVS? Thanks, Edson Richter Edson Carlos Ericksson Richter wrote: I think I and a co-worker (Igor) found a little bug in collection proxy. When using RemovalAware... as class for a collection descriptor, calling clear() in the collection don't register th

clear() && collection proxy && RemovalAware

2004-04-27 Thread Edson Carlos Ericksson Richter
I think I and a co-worker (Igor) found a little bug in collection proxy. When using RemovalAware... as class for a collection descriptor, calling clear() in the collection don't register the objects for deletion. The answer is the clear implementation in CollectionProxyDefaultImpl: public

Re: Need help to auto-retrieve some individuals

2004-04-27 Thread Edson Carlos Ericksson Richter
Unless your Father has a very large number of children (as can occur in a Construction and the elements of construction in a price building system), you will find easier to get all childrens and implements two business methods in your Father bean: getFemaleChildrens() and getMaleChildrens(). S

Re: ResourceClosedException

2004-04-22 Thread Edson Carlos Ericksson Richter
Are you trying to iterate over the list after calling a broker.close()? Richter Keith Rogers wrote: I'm developing a web application using OJB, and every now and then I have the ResourceClosedException come up when iterating over a list. I think I understand what the exception means, but I'm pre

Re: RC6 inheritance question.

2004-04-19 Thread Edson Carlos Ericksson Richter
For me works with 5 levels (huh, not so bad...). The only high WARNING here is if you try to get a report query using, let's say, max(someField), don't forget to iterate over results and watch the biggest (OJB will not do it for you: OJB will issue a select max(someField) for each table). May b

Re: MtoN mapping

2004-04-19 Thread Edson Carlos Ericksson Richter
Are you using rc6 distro with proxies? Dynamic proxies? If yes, try latest CVS HEAD. There are several fixies related to M:N with multi keys, and collections with proxies. Best regards, Edson Richter Holger Auffinger wrote: Hi folks, need help implementing Non-Decomposed m:n Mapping. Ther

auto-update='true', proxy problems

2004-04-14 Thread Edson Carlos Ericksson Richter
A programmer at my side found a problem when storing objects that have collection with auto-update='true' or auto-update='link', with proxy='true'. The problem appear be the following piece of PerfistenceBrokerImpl.java: private void storeAndLinkOneToMany(boolean linkOnly, Object obj, Colle

1:N, auto-update='false'

2004-04-14 Thread Edson Carlos Ericksson Richter
Appear that latest CVS Head is assuming auto-update='false' as auto-update='link'. Is this the correct behaviour? It should not be auto-update='none'? I've debugged OJB and seen this behaviour. I will need to fix all my repository files from auto-update='false' to auto-update='none'? Thanks fo

Re: Proxy & toString still return "unmaterialized proxy for..."

2004-04-06 Thread Edson Carlos Ericksson Richter
Ok, but I think the right behaviour is call toString, not returning a "unmaterialized proxy...". IMHO, If other complain, will be easy to track where the real problem is. Thanks by fast response. Edson Richter Thomas Dudziak wrote: On Tue, 6 Apr 2004, Edson Carlos Ericksson Ric

Re: Proxy & toString still return "unmaterialized proxy for..."

2004-04-06 Thread Edson Carlos Ericksson Richter
On IndirectionHandler, method invoke. Thomas Dudziak wrote: I'll fix it ASAP if you can provide with the location within OJB where toString is called. Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

Re: MtoN and multi-key indirection table trouble

2004-04-06 Thread Edson Carlos Ericksson Richter
test soon. Take care of the order of PK fields in your class-descriptors and in the indirection table. Maybe this cause your problems. regards, Armin Edson Carlos Ericksson Richter wrote: Sorry by reposting, but I'm in real trouble here... If I make a M:N without indirection works fine (i

Re: MtoN and multi-key indirection table trouble

2004-04-06 Thread Edson Carlos Ericksson Richter
fields in your class-descriptors and in the indirection table. Maybe this cause your problems. regards, Armin Edson Carlos Ericksson Richter wrote: Sorry by reposting, but I'm in real trouble here... If I make a M:N without indirection works fine (in real, it's a 1:N:1). There is any other

Proxy & toString still return "unmaterialized proxy for..."

2004-04-06 Thread Edson Carlos Ericksson Richter
Subject say all... Thanks, Richter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: MtoN and multi-key indirection table trouble

2004-04-06 Thread Edson Carlos Ericksson Richter
Sorry by reposting, but I'm in real trouble here... If I make a M:N without indirection works fine (in real, it's a 1:N:1). There is any other info (I already sent the collection-descriptors some time ago) I can send to help debug this? TIA, Edson Richter [EMAIL PROTECTED] wrote: Hi! I'm us

Re: Is it possible to do a Distinct on just one Column? (non PK)

2004-04-05 Thread Edson Carlos Ericksson Richter
to that, as a plan B! If I use a ReportQuery, can I still get OJB to return a collection of objects? (will it still iterate over the ResultSet and build my VOs, or will it just return a bunch of String[]?) Thanks! -Original Message- From: Edson Carlos Ericksson Richter [mailto:[EMAIL

Re: Is it possible to do a Distinct on just one Column? (non PK)

2004-04-05 Thread Edson Carlos Ericksson Richter
AFAIK, you will need a ReportQuery. Richter McCaffrey, John G. wrote: I need to do a query and retrive a filtered set of data. Basically I have a composite primary key item_code Price_Area_code price_bracket_cd effect_date an item can be in multiple price_areas , and will have historical entries

Re: Probleml with Mapping Inheritance Hierarchies

2004-04-01 Thread Edson Carlos Ericksson Richter
, then ojb does not know if it's an A, B or C. imo there's no other way than to define th pk unique. jakob Edson Carlos Ericksson Richter wrote: Of course, I'll try (all package test). public class A { public int id; public String description; } public class B extends

Re: Probleml with Mapping Inheritance Hierarchies

2004-03-31 Thread Edson Carlos Ericksson Richter
ow if it's an A, B or C. imo there's no other way than to define th pk unique. jakob Edson Carlos Ericksson Richter wrote: Of course, I'll try (all package test). public class A { public int id; public String description; } public class B extends A { public double value; } pu

Re: Probleml with Mapping Inheritance Hierarchies

2004-03-31 Thread Edson Carlos Ericksson Richter
Of course, I'll try (all package test). public class A { public int id; public String description; } public class B extends A { public double value; } public class C extends A { public Date value; } class="test.C" table="tableC"> name="id" column="id"

Probleml with Mapping Inheritance Hierarchies

2004-03-30 Thread Edson Carlos Ericksson Richter
ks fine (but I think it's a very, really bad solution). Behaviour is same with or without proxies. Best regards, Edson Richter Edson Carlos Ericksson Richter wrote: Hi! I don't know if this solves your problem, but AFAIK, you can't mix with , as you have done in class-descriptor

Re: Insert instead of update generated in RC6

2004-03-30 Thread Edson Carlos Ericksson Richter
I agree with you. Conversion is one way to get things working, as OJB executing a select to test with already exists a record with PK 0 is another way. The auto-increment field should be tested when in PK that is inherently not-null. In this case, there is no other way (exception if we create a

Re: Insert instead of update generated in RC6

2004-03-30 Thread Edson Carlos Ericksson Richter
Let me make some comments: Using primitive, then there is no other way to specify a nullability. I think we can take to the developer a choice to use nullable and primitive int but keep it always warned that 0 will save NULL in the database, and a NULL in database will, in turn, be converted to

Re: Still Probleml with Mapping Inheritance Hierarchies

2004-03-29 Thread Edson Carlos Ericksson Richter
Best regards, Edson Richter Edson Carlos Ericksson Richter wrote: Hi! I don't know if this solves your problem, but AFAIK, you can't mix with , as you have done in class-descriptor for A class. More, I have no luck in using extent-class using a Interface as super-object. Hav

Re: 1:0..1 mappings and dynamic proxies (was Re: [ann] new release 1.0.RC6)

2004-03-29 Thread Edson Carlos Ericksson Richter
, or catching a NPE? Best regards, Edson Richter Jakob Braeuchi wrote: hi edson, executing an additional count on each reference proxy is quite expensive. but i have to admit, i do not have a better solution right now :( jakob Edson Carlos Ericksson Richter wrote: Still with problems when

1:0..1 mappings and dynamic proxies (was Re: [ann] new release 1.0.RC6)

2004-03-29 Thread Edson Carlos Ericksson Richter
Still with problems when using a 1:0..1 mapping + proxy="dynamic". The problem is: when making a reference between two objects (X:Y) and there can be 0 or 1 object in Y side, Y must resturn NULL if it don't exists in database, and the object itself if there is 1 object in database. The rule is m

Re: [ann] new release 1.0.RC6

2004-03-29 Thread Edson Carlos Ericksson Richter
If you can download sources, you could do a "bin\build jar-debug" that will generate the debugabble version. Richter Glenn Barnard wrote: Congratulations!!! I have a couple of questions... First, will it have a debuggable version? rc5 didn't (at least as far as I could see)? McCaffrey, Jo

Re: [ann] new release 1.0.RC6

2004-03-29 Thread Edson Carlos Ericksson Richter
Appear the afterStore stuff is in place, and operational (so, RemovalAwareXXX again working fine). Sorry if sometimes I'm so fast in reporting problems, but I tryied to keep our project tuned to latest OJB ever (maybe not best policy, but until today solved most our problems with bugs). Sometim

Re: Still Probleml with Mapping Inheritance Hierarchies

2004-03-26 Thread Edson Carlos Ericksson Richter
Hi! I don't know if this solves your problem, but AFAIK, you can't mix with , as you have done in class-descriptor for A class. More, I have no luck in using extent-class using a Interface as super-object. Have you tried an ABAbstractClass (I'm just trying a sidekick)? Best regards, Edson

Re: MtoNCollectionPrefetcher.buildPrefetchCriteriaMultipleKeys(MtoNCollectionPrefetcher.java:338)

2004-03-25 Thread Edson Carlos Ericksson Richter
ield. The first pointing-to-element should be mapped to 1st PK in the N element, the 2nd to the second PK, and the 3rd, to 3rd PK. As far as I can see, the MtoN must know the CDS of the M element and the N element, so the mapping could be done. Richter Edson Carlos Ericksson Richter wrote: Th

Re: MtoNCollectionPrefetcher.buildPrefetchCriteriaMultipleKeys(MtoNCollectionPrefetcher.java:338)

2004-03-25 Thread Edson Carlos Ericksson Richter
B.field4 and C.field3 = B.field5 I expect this help. Edson Richter Jakob Braeuchi wrote: hi edson, imo the whole handling of the multi-key criteria is a little bit weird. what should the sql look like in your case ? jakob Edson Carlos Ericksson Richter wrote: Hum... There is some instability h

Re: Mapping two classes two one table

2004-03-25 Thread Edson Carlos Ericksson Richter
The result of a report query is a Object [], where each element represents a row from the database, and is a Object[] (one value for each field returned). Best regards, Edson Richter Guido Beutler wrote: Hi jakob, Thanks for the fast reply! works fine but one shot question: How do I get the

reference (1:1) and null

2004-03-25 Thread Edson Carlos Ericksson Richter
Hi! When retrieving a 1:1..0 mapping using proxies, after counting how many values has in the table, OJB should set the referenced object to NULL when counting is 0 (not setting the reference for a proxy that will give a NPE when trying to call a method). If the value set is a proxy (event if

Re: 1.0 RemovalAware doesnt work (was 1.0 - one more bug)

2004-03-25 Thread Edson Carlos Ericksson Richter
PersistenceBrokerImpl, method storeCollections. Edson Carlos Ericksson Richter wrote: I tracked down to the call to fireBrokerEvent just after calling store(myObject). When the call to afterStore in my RemovalAwareList should be called? Thanks Edson Richter Edson Carlos Ericksson Richter wrote: Someone know

Re: 1.0 RemovalAware doesnt work (was 1.0 - one more bug)

2004-03-25 Thread Edson Carlos Ericksson Richter
I tracked down to the call to fireBrokerEvent just after calling store(myObject). When the call to afterStore in my RemovalAwareList should be called? Thanks Edson Richter Edson Carlos Ericksson Richter wrote: Someone know what happened to the afterstore methods??? Thaks, Edson Richter

  1   2   3   >