db4o Developer Community

db4o open source object database, native to Java and .NET
Welcome to db4o Developer Community Sign in | Join
in Search
More Search Options

Browse by Tags

All Tags » identity   (RSS)
Showing page 1 of 2 (14 total posts)
  • enum and identity, I want to be able to use ==

    good morning, I have an interface IMorning : public interface IMorning { enum Mood {GOOD,BAD};   Mood getMood(); }    And I have the class Morning   public class Morning implements IMorning, Serializable { private static final long serialVersionUID = 5386061933351709956L;  private Mood mood;  Mood ...
    Posted to db4o User Forum (Forum) by huli on July 5, 2008
  • Solution of ID increment (come discuss my suggestion)

    I was going thru some of this stuff, but I'd found no answer for auto-increment on db4o-tutorial, so here's what I came up with, I'd really enjoy if you guys would give your points of view about it... Simple OO stuff, let's make a SuperEntity abstract class..I'm using C# for it.  using Db4o; public abstract class SuperEntity { } ...
    Posted to db4o User Forum (Forum) by tapgyn on April 12, 2008
  • Re: Is there a way to have DB4O use an Object's hashCode() to define equality?

    Actually I think the decision is quite easy and it has been taken a long time ago for db4o. The Java Language Specification is explicit what the *same* object is:object1 == object2 We never store *the same* object twice in a database. What you are asking for is special treatment for objects that are *equivalent*.object1.equals(object2) The ...
    Posted to db4o User Forum (Forum) by Carl Rosenberger on March 5, 2008
  • Why object identity behaves as it does (and a community project to implement #equals() identity)

    This is a repost from the user forum: When you store a graph of objects to db4o and retrieve it afterwards, db4o assembles the graph in exactly the same way as it was stored. In doing so db4o makes sure that every object is instantiated only once, no matter which access path you choose. You can run hundreds of queries, navigate through hundreds ...
    Posted to db4o Product Developer Forum (Forum) by Carl Rosenberger on February 28, 2008
  • Re: Is there a way to have DB4O use an Object's hashCode() to define equality?

    WolfBenz: What could be greater and more natural, for an Object Database, than that Objects themselves could define their equality? Well, that's exactly what equals() does. :-) Hi Wolf, we have had many discussions about this theme in the past. Let me explain why db4o behaves as it does. When you store a graph of objects to db4o and ...
    Posted to db4o User Forum (Forum) by Carl Rosenberger on February 28, 2008
  • object ids, isActive, isCached

    I am newbie in db4o, programming C# and db4o version 7.1 with transparent persistency by code instrumentation (db4otool –tp –nq). Could you help me to better understand object identity issues?I have a server-client scenario. The client creates an object, stores it in the server and closes the OC. Then in two parallel threads I open two separate ...
    Posted to db4o User Forum (Forum) by zporky on February 23, 2008
  • Unique Constraints using

    i'd like to use UniqueFieldValueConstraint to check object uniqueness in project. But i need to check identity of some objects by 2 fields. For example: configuration.objectClass(Pilot.class).objectField(''name'').indexed(true); configuration.objectClass(Pilot.class).objectField(''points'').indexed(true); configuration.add(new ...
    Posted to db4o User Forum (Forum) by nadeza on September 27, 2007
  • multiple containers object cross-reference / distributed environement ?

    I've a problem with the database file size limitation (254 GB). Yes it is quite big however depending of nature of the stored objects (images, sound, etc) this can pose a problem. What's come in mind in this case is to use multiple ObjectContainers; but what happens if stored objects in one container must reference objects in another container ...
    Posted to db4o User Forum (Forum) by semiosys on June 21, 2007
  • custom primary key

    Hi.  I am using GWT to make a simple web application. The initial simplicity of db4o was really impressive and compelling. But I have one problem now: I'd really like to define my object model only one place, using no annotations or exotic (at least to the client side of GWT) classes. But when previously stored objects are serialized to the ...
    Posted to db4o User Forum (Forum) by fredrikmh on May 22, 2007
  • SODA question - querying Lists

    Hello! Can somebody tell me how SODA behaves for querying Lists? Assumed that Foo is a class which got a field (List _bars) which holds Bar-Objects and I want to get all Foos which got a special Bar. Does this Query Query q = _objectContainer.query();q.constrain(Foo.class);q.descend(''_bars'').constrain(special_bar); // special_bar is a ...
    Posted to db4o User Forum (Forum) by Poison on April 24, 2007
1 2 Next >