Hi, I want to set unique key constraint for Db4oEmbedded EmbeddedConfiguration.
Here goes my code:
EmbeddedConfiguration myConf = Db4oEmbedded.newConfiguration();
myConf.common().objectClass(NotyUser.class).objectField("username").indexed(true);
myConf.common().add(new com.db4o.constraints.UniqueFieldValueConstraint(NotyUser.class, "...
When opening a client against a db40 server it seems to expect a user name and password
Db4oFactory.OpenClient(string hostName, int port, string user, string password);
Is there any way of using windows integrated instead?
...
I'm using DB4O on a new project I'm playing with and it would help me no end if I was able to use the Object Manager Enterprise utility. I understand it's only available as a VS plugin, so does anyone know whether such a plugin is / will be available for Visual Studio 2010, or is there another way to get the utility?
...
So, i'm looking at the TekPub sample for ASP.NET MVC2 (http://mvcstarter.codeplex.com/) using DB4o and there are a bunch of templates to create controllers etc, the generated code looks like:
public ActionResult Details(int id)
{
var item = _session.Single<Account>(x=>x.ID == id);
return View(item);
}
Now, ...
I have a DB4O server listening on a port
IObjectServer server = Db4oClientServer.OpenServer("filename.db40", 11978);
How do i register for callbacks? For example how do i execute some custom code before an object is read or stored?
...
can anyone give some reference for non-sql database query interface design pattern?
For sql-based database, the query can be achieved by combining the query token.
but for non-sql, how to design the query, given that the query could be very complex.
EDIT:
I am using db4o to store some objects, I may need to query according to a certai...
I'm playing around with building a new web application using DB4O - piles of fun and some really interesting stuff learned. The one thing I'm struggling with is DB4O's current lack of support for stateless applications (i.e. web apps, mostly) and the need for automatically-generated IDs.
There are a number of creative and interesting a...
Who can tell me how to use Distinct operation on db4o in Java code. I couldn't find any example in Java.
Thanks!
...
I am a new to db4o. I have a big problem with persistance of a graph of objects. I am trying to migrate from old persistance component to new, using db4o.
Before I peristed all objects its graph looked like below (Take a look at Zrodlo.Metadane.abstrakt string field with focused value) [its view from eclipse debuger] with a code:
Ob...
If you had a webshop solution based on SQL Server relational DB what would be the reasons, if any, to move to NoSQL storage ? Does it even make sense to migrate datastores that rely on relations heavily to NoSQL? If starting from scratch, would you choose NoSQL solution over relational one for a webshop project, which will, after a while...
I am evaluating two object databases, db4o (http://www.db4o.com) and Eloquera Database (http://eloquera.com) for a coming project. I have to choose one. My basic requirement is scalability, multi user support and easy type evolution for RAD.
Please share your real world experience.
If you have both, can you compare these two? Which do...
This is the way I am thinking of using DB4o. When I need to query, I would open the file, read and close:
using (IObjectContainer db = Db4oFactory.OpenFile(Db4oFactory.NewConfiguration(), YapFileName))
{
try
{
List<Pilot> pilots = db.Query<Pilot>().ToList<Pilot>();
}
finally
{
try { db.Close(); }
...
I have a db4o database file. Is there a tool that will generate Java or .NET classes (source) from this database?
...
Hey there - simple query:
var q = (from SomeObject o in container
where
o.SomeInt > 8
&& o.SomeString != null //Null Ref here
select o;
I always get a null reference exception.
If I use String.IsNullOrEmpty(o.SomeString) the query takes about 100 times as long, as if I use && o.SomeString != "" (which is way faster, but o...
I want to stores fotos use DB4o and a tried de following code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using Db4objects.Db4o;
using Db4objects.Db4o.Linq;
namespace imagemsDb4o
...
Hey all,
I would like to use db4o as the backend of a custom cache implementation. Normally my program involves loading into memory some 40,000,000 objects and working on them simultaneously. Obviously this requires a lot of memory and I thought of perhaps persisting some of the objects (those not in a cache) to a db4o database. My p...
Does anyone know of a way to shrink/compact a db4o database?
Thanks,
John
...
Hey,
Currently, we've got an application that needs to perform very fast searches on ~2 mill records.
Searches need to search both a large free-text field, and a number of integer/decimal fields between different ranges, along with various functions/computations & sorting.
Currently, we're handling this with a big MSSQL database, usin...
I'm currently doing some research on usage of db4o a storage for my web application. I'm quite happy how easy db4o works. So when I read about the Code First approach I kinda liked is, because the way of working with EF4 Code First is quite similar to working with db4o: create your domain objects (POCO's), throw them at db4o, and never l...
Hi,
suppose you have a Lift + db4o project... How do you define User model? Should I extend MetaMegaProtoUser?
Thanks in advance,
Etam.
...