Re: removal aware list

2006-09-21 Thread Edson Carlos Ericksson Richter
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't use RemovarAware. The default implementation

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,

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

[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 PROTECTED

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

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

[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

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

Re: Procedure based sequencence generator repeating values (SOLVED)

2006-05-05 Thread Edson Carlos Ericksson Richter
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, guys. I think I discovered a piece of solution for this problem: 1) Database must be in Full recovery

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,

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 Ericksson Richter

Re: Procedure based sequencence generator repeating values

2006-04-28 Thread Edson Carlos Ericksson Richter
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 know if this implies same

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

2006-04-28 Thread Edson Carlos Ericksson Richter
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 same transaction (I don't know

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 from Oracle

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

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

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

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: OJB 1.0.x and Java5.0

2005-08-08 Thread Edson Carlos Ericksson Richter
; } } And this will work fine? There is nothing 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

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 could I declare

1.0.0 - 1.0.3 differences (log)

2005-05-24 Thread Edson Carlos Ericksson Richter
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: 3347-0446 / 9259-2993

Re: a problem about oracle connection leak

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

Too slow for startup

2005-03-22 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: Advice on using OJB collections and Struts

2004-12-20 Thread Edson Carlos Ericksson Richter
- 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 - To unsubscribe, e-mail

Complex query with exists

2004-12-16 Thread Edson Carlos Ericksson Richter
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 commands, e

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: Null values

2004-12-03 Thread Edson Carlos Ericksson Richter
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 Richter wrote: I having several problemas with database in NULL values area. If I inform

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 introduced from any

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

Re: Profiling OJB

2004-12-01 Thread Edson Carlos Ericksson Richter
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 escreveu: Edson Carlos

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:

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: 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 (today is about

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

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

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

2004-11-24 Thread Edson Carlos Ericksson Richter
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'll do this because, as occured at other mail list, communications starts

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

[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

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 tools

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\*

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

2004-11-23 Thread Edson Carlos Ericksson Richter
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 design-rationales. This is more out of curisity.] As I said

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: 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' else

Re: XDoclet empty .xml

2004-08-12 Thread Edson Carlos Ericksson Richter
à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 */ correcting to this: /** @ojb.class table=TB1 */ worked fine. Hmm

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 escreveu: Edson Carlos Ericksson

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

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 doclet module. I already

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 and now I'm trying OJB doclet module. I

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

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 running. Always I get

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 taskdef that defined {2}. The taskdef is:

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: 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 = new

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

Re: OJB map

2004-06-24 Thread Edson Carlos Ericksson Richter
Of course, you can. pt_BRSim, você pode./pt_BR 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

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

Re: clear() collection proxy RemovalAware

2004-04-29 Thread Edson Carlos Ericksson Richter
) { 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 using RemovalAware

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().

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: clear() collection proxy RemovalAware

2004-04-27 Thread Edson Carlos Ericksson Richter
; } } 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 the objects

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

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.

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

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

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,

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

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
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 info (I already sent

Re: MtoN and multi-key indirection table trouble

2004-04-06 Thread Edson Carlos Ericksson Richter
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 (in real, it's a 1:N:1

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,

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 Richter wrote

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

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

2004-04-05 Thread Edson Carlos Ericksson Richter
in 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: 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-descriptor class=test.A extent-class class-ref=test.B / extent-class

Re: Probleml with Mapping Inheritance Hierarchies

2004-03-31 Thread Edson Carlos Ericksson Richter
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; } public class C extends

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

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

Probleml with Mapping Inheritance Hierarchies

2004-03-30 Thread Edson Carlos Ericksson Richter
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 field-descriptor with extent-class, as you have done in class-descriptor

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

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,

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

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

Re: Still Probleml with Mapping Inheritance Hierarchies

2004-03-29 Thread Edson Carlos Ericksson Richter
Richter Edson Carlos Ericksson Richter wrote: Hi! I don't know if this solves your problem, but AFAIK, you can't mix field-descriptor with extent-class, 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

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 field-descriptor with extent-class, 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

Re: Building OJB with no GUI

2004-03-25 Thread Edson Carlos Ericksson Richter
I think you can remove the spash tag in build.xml file. Richter - Original Message - From: [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Thursday, March 25, 2004 7:19 AM Subject: Building OJB with no GUI Is there a way of building OJB wihtout a GUI? If not, can we

Re: 1.0 - one more bug

2004-03-25 Thread Edson Carlos Ericksson Richter
Someone know what happened to the afterstore methods??? Thaks, Edson Richter Edson Carlos Ericksson Richter wrote: Ops, the correct is The afterstore method is NOT being called. Tkx, Edson Richter - Original Message - From: Edson Carlos Ericksson Richter [EMAIL PROTECTED] To: 'OJB

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

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

2004-03-25 Thread Edson Carlos Ericksson Richter
(this); } in 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

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: 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

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

2004-03-25 Thread Edson Carlos Ericksson Richter
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 here. I don't know

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

2004-03-25 Thread Edson Carlos Ericksson Richter
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: The expected

Re: Problem in PersistenceBrokerImpl

2004-03-24 Thread Edson Carlos Ericksson Richter
I had not so much time to investigate: I fixed because I need to upgrade to 1.0.0 ASAP (due to other fixes). I'll double check the stack trace because the problems is occurring when querying, not storing neither deleting. Best regards, Edson Richter

Re: Problem in PersistenceBrokerImpl

2004-03-24 Thread Edson Carlos Ericksson Richter
To: OJB Users List Sent: Wednesday, March 24, 2004 9:36 AM Subject: Re: Problem in PersistenceBrokerImpl Edson Carlos Ericksson Richter wrote: I had not so much time to investigate: I fixed because I need to upgrade to 1.0.0 ASAP (due to other fixes). ok, no problem. Could you send me the stack

MtoNCollectionPrefetcher.buildPrefetchCriteriaMultipleKeys(MtoNCollectionPrefetcher.java:338)

2004-03-24 Thread Edson Carlos Ericksson Richter
This bug is driving me crazy... Someone could point me what changed from rc5 to 1.0 in this method (so I can at least fix locally)? The problem is a M:N mapping using composite pk pointing the M bean, and 1 field pk pointing to the N bean. The stack trace is:

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

2004-03-24 Thread Edson Carlos Ericksson Richter
Carlos Ericksson Richter To: 'OJB Users List' Sent: Wednesday, March 24, 2004 2:46 PM Subject: MtoNCollectionPrefetcher.buildPrefetchCriteriaMultipleKeys(MtoNCollectionPre fetcher.java:338) This bug is driving me crazy... Someone could point me what changed from rc5 to 1.0 in this method (so I

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

2004-03-24 Thread Edson Carlos Ericksson Richter
stuff so I can't send much time for that - put this on my imaginary todo-list for 1.0 ;-) regards, Armin Edson Carlos Ericksson Richter wrote: This bug is driving me crazy... Someone could point me what changed from rc5 to 1.0 in this method (so I can at least

  1   2   >