Re: Locking granularity

2005-01-17 Thread Pulat Yunusov
Set auto-update=none in the child's reference to the parent, if I understand you correctly. Pulat Laran Evans wrote: My meta-question is Is verioning configurable with respect to object locking? That said, here's my scenario. I have a parent Object and child objects. When I change a child (a

Re: OJB documentation

2005-01-11 Thread Pulat Yunusov
Perhaps, native German speakers created the documentation, and I appreciate their effort. If anything needs to be improved, anyone is free to submit patches for peer review or file a feature or bug request. Pulat Bobby Lawrence wrote: Whats up with all the German (or whatever foreign language)

Re: Vulnerabilities

2004-12-23 Thread Pulat Yunusov
I'd like to thank everyone for your valuable input. Season's greetings! Pulat Pulat Yunusov wrote: Is there a list of OJB security vulnerabilities: current and closed? Is this information regularly collected or posted and where, in this list? Thank you, Pulat

Re: PB Tutorial: Query By Criteria on Object

2004-12-02 Thread Pulat Yunusov
Your template likely refers to an instance with the default value for the primary key field, which is 0, and there is no record with PK equal to zero in your database. Pulat Annapoorani Rathi wrote: Hi, I just started on OJB.. In PB Tutorial, the code snippet does not fetch me the record

Re: Using alternate key instead of primary key when relating an class descriptor with a collection descriptor

2004-11-24 Thread Pulat Yunusov
I don't think what you want is possible because it goes against concepts of row indentity and referential integrity. A foreign key in one table implies a relation to the primary key in the other table, and there can be only one primary key. The normal way to specify the relationship you want

Re: OJB doesnt work with multiples context

2004-11-23 Thread Pulat Yunusov
What is a context? Francisco Bruno wrote: OJB doesn't work simultaneously with some contexts? [], Francisco Bruno - Faça as coisas o mais simples que você puder, porém não as mais

Re: FW: Newbie Question : There was no default-PBKey specified

2004-11-19 Thread Pulat Yunusov
Can you please modify your mailer so it doesn't request return receipts? Thank you, Pulat Stark, Roman wrote: For the past tow days I tried to set up the ojb-blank project. Everything I try ends up with the following message: There was no default-PBKey specified I am using eclips 3 for the project

Re: HighLowSequenceManager chaos

2004-10-18 Thread Pulat Yunusov
Grab size refers to the number of consecutive values from which the sequence manager issues primary keys until it reaches a value equal to the max_key - 1. Then the max_key is increased by the grab size, and the sequence manager continues to issue primary keys until it exhausts the sequence

Re: HighLowSequenceManager chaos

2004-10-18 Thread Pulat Yunusov
forward, then went incremental for a week or so and then jumped back and started overwriting existing objects, which obviously isnt good. I've decided to convert to letting mysql do the incrementing, and tell ojb to use native impl. Daniel. -Original Message- From: Pulat Yunusov [mailto

Re: HighLowSequenceManager chaos

2004-10-18 Thread Pulat Yunusov
objects, which obviously isnt good. I've decided to convert to letting mysql do the incrementing, and tell ojb to use native impl. Daniel. -Original Message- From: Pulat Yunusov [mailto:[EMAIL PROTECTED] Sent: 18 October 2004 15:19 To: OJB Users List Subject: Re: HighLowSequenceManager

Re: SequenceManager's integrity

2004-10-04 Thread Pulat Yunusov
Thank you, Armin. I am testing it now. Pulat Armin Waibel wrote: Hi, fixed in CVS (OJB 1.0.x branch OJB_1_0_RELEASE) Armin Armin Waibel wrote: Hi Pulat, Pulat Yunusov wrote: Currently, all PersistenceBrokers that use SequenceManagerHighLowImpl share one Map for keeping sequences. That map keys

Metadata listeners

2004-10-04 Thread Pulat Yunusov
We add and remove descriptor and connection repositories during our application lifecycle using MetadataManager. It seems useful and logical to have listener interfaces for DescriptorRepository and ConnectionRepository because some objects need to cleanup their state when the metadata is

Re: More than one sequence manage is possible in single connection repository ?

2004-10-01 Thread Pulat Yunusov
Instantiate the SequenceManager class you're interested in and set any parameters it may need directly via its set methods. Beware that such sequence managers as HighLowImpl and InMemoryImpl maintain sequences in static members rather than in instance state so you'll have to distinguish

SequenceManager's integrity

2004-10-01 Thread Pulat Yunusov
Currently, all PersistenceBrokers that use SequenceManagerHighLowImpl share one Map for keeping sequences. That map keys sequences essentially by table name in many common cases. I understand if two databases have tables with the same name, accessing them within a single OJB instance will lead

Re: Optimistic Locking exception with 1.0 - doesn't happen with rc4

2004-09-16 Thread Pulat Yunusov
Kollivakkam, Is the value in your MOD_NUM incremented properly every time the record is updated? I am asking because I have a problem using the version field for optimistic locking. Thanks, Pulat Kollivakkam R. Raghavan wrote: No our application is one where client and server need to

Re: Version and optimistic locking

2004-09-16 Thread Pulat Yunusov
to the DTD at http://db.apache.org/ojb/repository.dtd.txt, the default value of update-lock is true. I am using OJB 1.0.0. Have I found a bug, and has anybody else experienced this? Thanks, Pulat Pulat Yunusov wrote: According to the OJB FAQ the version column is incremented each time changes

Re: Version and optimistic locking

2004-09-16 Thread Pulat Yunusov
RepositoryXmlHandler.java to 'debug'. When using OJB default logger simply change entry for this class to 'debug' in OJB-logging.properties regards, Armin Pulat Yunusov wrote: I found that update-lock is false by default, that is when I don't specify it in the locking field descriptor. When I set

Re: Version and optimistic locking

2004-09-16 Thread Pulat Yunusov
); if(checkString(updateLock)) { b = (Boolean.valueOf(updateLock)).booleanValue(); m_CurrentFLD.setUpdateLock(b); } This should fix the bug. regards Armin Pulat Yunusov wrote: Thanks for your reply, Armin. Using a debugger I found that RepositoryXmlHandler sets updateLock to false when update

Re: Version and optimistic locking

2004-09-16 Thread Pulat Yunusov
No problem, Armin. :) Pulat Armin Waibel wrote: Pulat Yunusov wrote: Great, Armin. Are you committing this to CVS any time soon? Thanks, Done! It's in CVS now (both 1.1 trunk and 1.0.x branch - OJB_1_0_RELEASE). Thanks for bag this bug ;-) Armin Pulat Armin Waibel wrote: In statement 3 above

Re: OJB and debug options

2004-09-15 Thread Pulat Yunusov
Logging levels are set in the OJB.properties files. Find a line that specifies the logging level for your implementation of SQL generator, e.g. org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl.LogLevel=WARN, and put the appropriate value in (DEBUG). Around that part of the file,

Version and optimistic locking

2004-09-15 Thread Pulat Yunusov
According to the OJB FAQ the version column is incremented each time changes are committed to the object. The version column is the column described in field-descriptors with the locking attribute set to true. However, I have never ever seen values in this column other than the default of

Re: Anonymous keys

2004-09-14 Thread Pulat Yunusov
through property accessors). -Brian On Sep 13, 2004, at 6:53 PM, Pulat Yunusov wrote: What is the purpose of anonymous keys? Given class A and class B where class A has a reference to class B, I removed setId() from both classes, and setBId() and getBId() from class A. I still have private members

Anonymous keys

2004-09-13 Thread Pulat Yunusov
What is the purpose of anonymous keys? Given class A and class B where class A has a reference to class B, I removed setId() from both classes, and setBId() and getBId() from class A. I still have private members id in both classes, and bId in class A as well as all corresponding field and