[Biojava-l] Getting features with the same Location
Hilmar Lapp
hlapp at gmx.net
Thu Dec 11 18:35:11 UTC 2008
Understood. You could still make it a read-only property though, no?
Would there be dangers with that too?
-hilmar
On Dec 11, 2008, at 11:28 AM, Richard Holland wrote:
> The rationale was to prevent it being changed by the programmer,
> because
> if that happens then Hibernate gets seriously confused (it relies on
> the
> PKs remaining constant whilst an object is in memory).
>
> Hilmar Lapp wrote:
>>
>> On Dec 11, 2008, at 10:02 AM, Richard Holland wrote:
>>
>>> Yes, the bioentry_id is private.
>>
>>
>> What's the rationale for that? It's the primary key; why should it be
>> forbidden to view it, even for derived classes?
>>
>> (For a Bioperl-db persistent object, the primary key is public and
>> always accessible as $pobj->primary_key(). It can even be changed
>> by the
>> programmer, though of course you should know what you're doing when
>> you
>> decide to do that.)
>>
>> -hilmar
>
> --
> Richard Holland, BSc MBCS
> Finance Director, Eagle Genomics Ltd
> M: +44 7500 438846 | E: holland at eaglegenomics.com
> http://www.eaglegenomics.com/
--
===========================================================
: Hilmar Lapp -:- Durham, NC -:- hlapp at gmx dot net :
===========================================================
More information about the Biojava-l
mailing list