repository

How to retrieve Aggregate objects?

In DDD, Repository takes care of saving and retrieving domain objects and also serves as collection of Aggregate Roots. My question is how do you retrieve the information for those child entities (let's say from DB) of an Aggregate where basic rule is Repository should just hold collection of Aggregate Roots (parent object) and not child...

Can Git or Mercurial be set to bypass the local repository and go straight to the central one?

Using Git or Mercurial, if the working directory is 1GB, then the local repository will be another 1GB (at least), residing normally in the same hard drive. And then when pushed to a central repository, there will be another 1GB. Can Git or Mercurial be set to use only a working directory and then a central repository, without having 3...

Proper reconstitution of Aggregate objects in the Repository?

Assuming that no ORM (e.g. Doctrine) is used inside the Repository, my question is what is the proper way of instantiating the Aggregate objects? Is it instantiating the child objects directly inside the Repository and just assign it to the Aggregate Root through its setters or the Aggregate Root is responsible of constructing its child ...

Problem Registering a Generic Repository with Windsor IoC

I’m fairly new to IoC and perhaps my understanding of generics and inheritance is not strong enough for what I’m trying to do. You might find this to be a mess. I have a generic Repository<TEntity> base class: public class Repository<TEntity> where TEntity : class, IEntity { private Table<TEntity> EntityTable; private st...

assembling an object graph without an ORM -- in the service layer or data layer?

At my current gig, our persistence layer uses IBatis going against SQL Server stored procedures (puke). IMHO, this approach has many disadvantages over the use of a "true" ORM such NHibernate or EF, but the one I'm trying to address here revolves around all the boilerplate code needed to map data from a result set into an object graph. ...

Why do techs recommend YUM installs yet repositories and providers are ages behind?

I have been reading page after page after page about the benefits of using YUM package installer and how NOBODY should built installs from source files (which again makes no sense to me) yet the repositories and source builders always package files in Tarball format, leaving a TON of work (which usually ends up going wrong) to the indivi...

Why is ExecuteFunction method only available through base.ExecuteFunction in a child class of ObjectContext?

I'm trying to call ObjectContext.ExecuteFunction from my objectcontext object in the repository of my site. The repository is generic, so all I have is an ObjectContext object, rather than one that actually represents my specific one from the Entity Framework. Here's an example of code that was generated that uses the ExecuteFunction m...

Selective Checkout or a View, on a project in repository

I have a bunch of interconnected projects which share the same project tree. I'm looking for a version control system which provides a possibility to checkout a subset of the project tree. If my the full project tree looks like this: Project Root |-Feature1 | |-SubFeature11 | \-SubFeature12 |-Feature2 | |-SubFeature21 | \-Su...

My Git objects pack folder is very heavy (after push --force)

Hi ! I use Git and needed to send many many... git init . ... git push --force .. to the same branch of a remote repo. Now my .git/objects/pack is 168MB heavy for a 25MB app. Can anyone explain me which mecanism packs objects -- is it automated when remote recieves a forced push ? Is it dangerous for the Git repo integrity to dele...

Gradle/ivy use cached repos?

Dear All: I would like Grade/Ivy to use cached versions of my jars, as it takes ~20 seconds to check every time for updates. Is this possible? Thank you Misha ...

Understanding Domain Driven Design

Hi I have been trying to understand DDD for few weeks now. Its very confusing. I don't understand how I organize my projects. I have lot of questions on UnitOfWork, Repository, Associations and the list goes on... Lets take a simple example. Album and Tracks Album: AlbumId, Name, ListOf Tracks Tracks: TrackId, Name Should i expose...

J2EE Centralized URLrepository Sharepoint

Friends I am going through this pain of remembering all urls or adding it to my favorites every time there is a release or search for the urls in mailbox when needed it is confusing all the time. We have around 25 apps which we use regularly in our daily work and its growing. I have this idea to develop little J2EE app or a work flow wh...

Find revision number for a tag

Perusing http://svn.osafoundation.org/chandler/tags/ I wanted to get the revision number for these tags. How can I do it? The only thing I can see is the most recent revision number. ...

VS 2010 Entity Repository Error

In my project I have it set up so that all the tables in the DB has the property "id" and then I have the entity objects inherit from the EntityBase class using a repository pattern. I then set the inheritance modifier for "id" property in the dbml file o/r designer to "overrides" Public MustInherit Class EntityBase MustOverride Pro...

Unable to use stored procs in a generic repository for the entity framework. (ASP.NET MVC 2)

Hi, I have a generic repository that uses the entity framework to manipulate the database. The original code is credited to Morshed Anwar's post on CodeProject. I've taken his code and modified is slightly to fit my needs. Unfortunately I'm unable to call an Imported Function because the function is only recognized for my specific ins...

How to get notified of updates to public maven repositories for new plugins?

Are there any tools which will notifiy you automatically of any new plugin additions from public maven repositories (e.g. Apache | Codehaus | JBoss | Sourceforge maven repository ...) ...

Responsibilities of Service and Repository layers

Just trying to get my head round the responsibilities of the service layer and repository layer when saving an object to my persistence store. My current under standing is this: In my controller I have created a "Note" object from the data submitted by the user (from the form). The user then calls "Save" on the "NoteService" (which is ...

Is it possible to import files from one SVN repository to another using TortoiseSVN?

I have several separate SVN repositories locally on my machine and I use only the TortoiseSVN client functionality without an SVN server backend. Now I want to merge these repositories while keeping the revision history of individual files. Is that possible with with TortoiseSVN alone or even SVN? Edit: It seems like what I want to acc...

Bitbucket, Assembla.. or what?

So, after a while of researching what SVN system should I use, I end up creating a project in Google Code.. thing is, that ANYONE can habe access to my repository, and is NOT what I want :) So, I'm looking for a "private Google Code" code hosting web. I found out that Bitbucket and Assembla are good, but.. any opinions? Thx! ...

Proper way to build a data Repository in ASP.NET MVC

I'm working on using the Repository methodology in my App and I have a very fundamental question. When I build my Model, I have a Data.dbml file and then I'm putting my Repositories in the same folder with it.... IE: Data.dbml IUserRepository.cs UserRepository.cs My question is simple. Is it better to build the folder struc...