FAQ Database Discussion Community


How should I handle persistence for referenced entities?

c#,entity-framework,repository,domain-driven-design
I'am using Entity-Framework and DDD. If I have a reference between two entities, how should I handle persistence? Do updates cascade? Suppose an Employer has reference to their Manager directly. If I change the Employee.Manager.Name, and save the Employee, does the Manager’s Name get changed?...

Autofac Repository Pattern and Unit Of Work

entity-framework,design-patterns,repository,autofac,unit-of-work
I have searched a little bit and I am confused. First Approach uses a repository and a service for each entity with Autofac. Unit of work class does not have repositories. Therefore, you should create each repository instead of just creating one unit of work class in caller constructor. OrderService(IUnitOfWork...

Way to access from a repository to two values in session - Symfony2

php,symfony2,session,repository
i has in the Session two values: classroom and subject I update this values with Handlers in my web, and i use in multiple controllers, but i have a problem? I call one EntityRepository and use a various functions multiple times, with the same two values: classroom and subject, so...

Android Studio Best way import module from other repository

android,git,gradle,repository
I have to import a project from a Github repository as a module inside an Android Studio project that it committed into another repository. The project I have to import from Github will be updated constantly so it means that I'll have to refresh every now and again for having...

Git not recognizing online repo

git,repository
I need to get a driver from ENAC, which posts the driver online here. The trouble is, git does not see it as a repo. git clone http://lii-enac.fr/cgi-bin/gitweb.cgi?p=linux-input/hid-multitouch.git;a=tree;f=drivers;h=4a0269c4d150aa46c245b05a3ceca95eb373980c;hb=HEAD Cloning into 'hid-multitouch'... fatal: repository 'http://lii-enac.fr/cgi-bin/gitweb.cgi?p=linux-input/hid-multitouch.git/' not found How do I use git to clone the repo?...

Maven failure to find codehaus artifact org.codehaus:codehaus-parent

java,maven,groovy,repository
So codehaus shut down (over the weekend, apparently): https://www.codehaus.org/ Now it says here that "Maven: All repositories are mirrored into Central, and our Nexus is hosted by Sonatype". If I am reading this correctly, this means that it should continue to work (and because Central is the default repository, I...

PHP Frameworks and Project Repositories

php,git,github,zend-framework2,repository
I'm starting a new in PHP and for the first time I'm going to use a framework as the basis of the project. I've decided to use Zend Framework 2 for it. I'm going to be version controlling the project via Github. Is it normal to include all the framework...

Entity Framework relationships between different DbContext and different schemas

c#,entity-framework,foreign-keys,repository,dbcontext
So, I have two main objects, Member and Guild. One Member can own a Guild and one Guild can have multiple Members. I have the Members class in a separate DbContext and separate class library. I plan to reuse this class library in multiple projects and to help differentiate, I...

uberspace git deployment with laravel 4.2 and rocketeer 1.2.2

php,git,laravel,deployment,repository
I have a web application build with laravel 4.2. And I have a uberspace account. nothing special. I have also the vendor package rocketeer from anahkiasen for deploy my application to the server. With laravel 4.1 this isn't a problem. But after I upgrade to laravel 4.2 I got massive...

Generic repository with generic constructor of type T

c#,generics,repository
I have the following classes in c#: public class Customer{ public long Id { get; set;} public String Firstname { get; set;} public String Lastname { get; set;} public Customer(long id, String firstname, String lastname){...} } public class Book{ public long Id { get; set;} public String Title { get;...

How to add a LIST item with Java API Repository in Oracle ATG?

java,oracle,repository,atg
I create this repository: <gsa-template> <item-descriptor name="indirizzo" > <table name="INDIRIZZO" type="primary" id-column-name="ID_INDIRIZZO"> <property name="via" data-type="string" column-name="VIA" /> <property name="civico" data-type="int" column-name="CIVICO" /> </table> </item-descriptor> <item-descriptor name="utente" > <table name="UTENTE" type="primary" id-column-name="ID_UTENTE"> <property name="nome" data-type="string" column-name="NOME" /> <property...

How to get vendor folder in github project

php,html,api,github,repository
Ive downloaded a helper library of an API written in PHP from GITHUB, but when I download the .zip file it doesnt contain vendor folder, but everywhere in the code it is seeking some files from vendor folder-which is error in running. Can you help me how to get these?...

What urpmi source can I use with Mandriva Entreprise Server 5.2?

linux,repository,server
I have to install several packages for a customer on an old server using Mandriva Entreprise Server 5.2 (MES5). I have asked my customer for the DVD-ROM but he didn't find it, so I would like to know if there is an online compatible repository. I have found several repositories...

Android Studio Git .gitignore vs Project > Settings > Version Control > Ignored Files

android,git,repository,gitignore
I am somewhat confused, I noticed that upon setting up my first Git repository in Android Studio all of the correct files to ignore were automatically added to the Project's Settings under Settings > Version Control > Ignored Files. This appeared to be magic, I never told it what to...

How to get all FAL File Objects which are referenced?

repository,typo3,extbase,fal
I'm trying to make a extbase extension for TYPO3 to get alle file objects with mimetype image/... which referenced by any content, plugin or fluid in typo3. But i don't know which is the best way to get these data. How should i create a model in my extension and...

How to get the deleted git repository back?

git,repository
I've deleted my local repository by mistake, how do I get the files back from remote repository ?

How do I link an already established local git repository to a new remote repository and push all files to remote?

git,web,repository
My scenario is that I have created a local git repository using SourceTree. As I worked on my project I would commit to my local repository. Nothing new there with Git. So I have a well established Git repository now that I would like to put on a remote server...

Copy a CVS project into another CVS project

maven,copy,migration,repository,cvs
In our CVS repository our projects look like this: - app-parent - app-backend - app-gui - app-common Now I want to represent the Maven structure of our projects also in our CVS repository. So the repository should then look like this: - app-parent - app-backend - app-gui - app-common How...

JPA repository : issue with saving an entity in a big table - timeout error [duplicate]

java,mysql,jpa,repository
This question already has an answer here: Getting “Lock wait timeout exceeded; try restarting transaction” even though I'm not using a transaction 7 answers I am using jpa repository. I want to save an entity in a Mysql table which contains 100000 records. When I do FraisProvision fraisProv =...

Set up new project repository on windows LAN envirnment

git,version-control,repository
I was working on a project which I access via git bash on local environment. Now I want to work on another project and I want to set up repository for the new project. My old project repository is on D:/joy location. joy is shared. How do I create new...

Where do I put .mdf and .ldf files to share an SQL script through git

sql,sql-server,git,repository
I am attempting to share a file that builds and populates an SQL database through git, but it won't create the DB on my team members' machines because the .mdf and .ldf files are located on my machine. How can I rectify this?

How to change git repository using android studio

git,github,android-studio,version-control,repository
I'm using git with android studio and I already sync other repository. But I hope to change a git repository like github. I think I need to disconnect already connected to the repository but I don't found this option. To do that, How can I do?...

My project uses over 100 git submodules, which submodule alternative can handle a lot of repositories gracefully

git,dependencies,repository,workflow,git-submodules
I've been researching git subtree and other alternatives to git submodules. My project has well over 100 submodules and it's very unwieldy to manage them all. Can anyone recommend a workflow that works really well with a large number of repositories that need to be kept in sync....

getting a repository for projects

repository
When I was on an army programming course me and my friends used SVN with a repository we had. I wanna set up a repository so that I can work on my projects without having to worry about moving my files from pc to pc and working with the right...

Laravel - Method in Model with Repository Paramater?

php,laravel,repository,views
I'm using laravel and i'm having some problems that I'm not quite sure what is the best way to do. I have in my views Folder a file with the line: {{ $user->permissionName() }} The function permissionName() gets the User's $permission_id property and then it returns the name of the...

Github : how to access public repository anonymously?

github,repository,anonymous
I'd like to download anonymously public repositories source code in my computer using java. So, I know how to download source code in repository using kohsuke-git-api. but, I didn't find how to access public repositories anonymously. (repositories are not mine)

Add Eclipse Refactor History to Git Repository

eclipse,git,repository,push,automated-refactoring
I'm refactoring my Java code in Eclipse, and they are saved in Refactor History. But I need push my project to Bitbucket, and I want that Refactor History push too. How can I do it?...

Git: Merging only branch specific commits

git,repository,git-merge,branching-and-merging
To give you a background the way I monitor Git repository and branches; I have been monitoring two branches starting from each sprint - release and master. Master branch is from where developers create new branch(task specific), implement their changes, and creates pull request which gets merged into the Master....

Mock service that takes unitOfWork in constructor

c#,unit-testing,repository,moq,business-logic
I try to write unit tests on my business logic. What i have now : private Mock<IRepository<Theme>> _mockRepository; private IBaseService<Theme> _service; private Mock<IAdminDataContext> _mockDataContext; private List<Theme> _listTheme; [TestInitialize] public void Initialize() { _mockRepository = new Mock<IRepository<Theme>>(); _mockDataContext = new Mock<IAdminDataContext>(); _service = new ThemeService(_mockDataContext.Object); _listTheme = new List<Theme> { new...

See git commands generated by TortoiseGit

c#,.net,git,repository,tortoisegit
I use TortoiseGit as my git client. I can cooperate with repository by clicking. I would like to know more about git and its command. Is there any oportunity to see what git commands are generate for git? For example I click Switch command and select target, how can I...

System.StackOverflowException was unhandled error

c#,asp.net,asp.net-mvc,repository
I am fairly new to repositories and mock repositories, so I would like help understanding what this error means exactly and how to avoid it. I have looked at other posts and done my research but they are too specific to their errors. The code that is breaking is public...

Ideal number of files per folder for large sets of files

filesystems,repository,storage
I am currently in the process of designing a simple repository that uses the file system to store documents. There is the future potential for millions of files and the strategy that I want to use to map an ID to a location on disk is a means of hashing...

Download a bitbucket git repository via api

git,repository,bitbucket,git-branch,bitbucket-api
I am trying to make a script which get the repository from bitbucket and upload it to my ftp server. My first problem is that i dont know how to get the repository.. Is there a way to download it with the official Bitbucket API? Or should i make a...

need more understanding on gitblit groovy push script

java,git,groovy,repository,gitblit
I have below groovy script PushCommand push=git.push(); push.setRemote("my remote"); push.setPushAll(); //Push all branches under refs/heads/*. push.setForce(true); //Sets the force preference for push operation. push.call(); My requirement: want to push only changes from one gitinstance to other setPushAll : Is this going to push all repository data all time script executed...

Backup github repository, branches and commits?

github,repository,backup
I want to backup everything including master & other branches & commits on my local & create new repository using different account. Which steps should i follow ? (bundle, mirror or clone)...

composer set a local repository (satis)

repository,composer-php,satis
I want to set a local Repository, so i set up satis. I loaded SonataAdminBundle and KnpMenuBundle as an exemple. satis.json: {"type": "vcs", "url": "https://github.com/sonata-project/SonataAdminBundle"},{"type": "vcs", "url": "https://github.com/KnpLabs/KnpMenuBundle"} After that, in my project composer : {"repositories": [ { "type": "composer", "url": "http://my.local.repo/" }, { "packagist" : false } ], "minimum-stability":"dev",...

Merge a Git repository into another one keeping all the history

git,merge,repository
I've started developing project A. Then, at some point, I cloned A to another location (project B), so that other developers could also participate. I've then moved on developing project B only. Now, I would like to integrate all changes I've done in project B into project A while keeping...

Git: Remove directory with quotes and backslashes from repo

git,directory,repository,special-characters
I have a directory in my git repository (but not on my local system) named "my\\directory-name" It contains two quotation marks and two backslashes. The problem is that with this directory in my repo it is not possible to checkout the contents completely because (error message:) git doesn't find a...

Does gitignore support regexp

linux,git,repository
How to make $HOME/.gitignore understand regexp? Specifically, I want to enable it ignore files modules.builtin and modules.order: modules.\(order\|builtin) This doesn't seem to be picked up when I'm running git status What am I doing wrong here? Thanks....

create a sub-repository and insert it in the main project

git,github,repository
I'm very new to git, I use it through gitHub, and I wanted to know if there's a way to create a sub-repository that is then included in the main one. For example, if I have a library with modules, I'd like some of them to be in a repository...

JPA call very long - how to check if the issue comes from jpa or from mysql

mysql,jpa,repository
I have an application that run fast on my computer but slow on a VPS for this JPA call List<Catalogue> cats = catRepository.findAll() This lasts 9 seconds (2.5s on my computer), I would like to know what takes so long : sql query or jpa? Is there a way to...

Dependency between repositories

c#,entity-framework,repository,domain-driven-design
I'm using Entity Framework with DDD. I have the following entities: Person, Customer, Employee Person is abstract. Customer and Employee inherit person. Person has references to the Person Address (List). Should I have a repository for each type or only for each concrete type? (Just Customer and Employee) Could I...

How to rename a remote git branch name

git,repository,rename,git-branch
I have 4 braches like master -> origin/regacy, FeatureA -> origin/FeatureA. As you can see above, I typed a wrong name. So I want to rename a remote branch name ( origin/regacy => origin/legacy or origin/master) I try to command below. git remote rename regacy legacy But git console retured...

Application Services Composition

c#,service,repository,domain-driven-design
I've a Customer entity that has an referente to City: public class Customer { public int CustomerId { get; set; } public int CityId { get; set;} } Then, the following application service: public class CustomerService { private readonly ICustomerRepository customerRepository; public CustomerService(ICustomerRepository customerRepository) { this.customerRepository = customerRepository; } public...

Domain Driven Design : Can aggregate root have public setter?

design-patterns,repository,domain-driven-design
If I have a aggregate root says User It have property like public class User:BaseEntity { public User() { //Ef Use } public User(string firstName, string secondName, string userName,Password password ) { this.UserName = userName; this.Password = password; this.FirstName = firstName; this.SecondName = secondName; } public string UserName { get;...

JPA : entities with null property not retrieved

jpa,repository,jpql
I have two entities : @Entity @Table(name = "T_CLIENT") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) public class Client implements Serializable { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @Column(name = "code") private String code; @Column(name = "nom") private String nom; @OneToOne private TypeClient typeClient; @Entity @Table(name = "T_TYPECLIENT") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) public class...

How to correlate Docker image list with tag list both as returned by API?

image,repository,docker
One can do curl https://index.docker.io/v1/repositories/ubuntu/images which yields { {"checksum": "", "id": "76ca2fd907879906ba5c936738ccce0b577590040ac8d288f07afb3d34ae8b03"}, ... } One can also do curl https://index.docker.io/v1/repositories/ubuntu/tags which yields { {"layer": "5ba9dab4", "name": "latest"}, {"layer": "3db9c44f", "name": "10.04"}, ... } How can you now correlate the image IDs with the tag names? Can you rely on the...

how can i get repository of many entities in one getRepository

symfony2,repository,entity
I have tried this but it wont work it just execute the first entity $resultat = $con->getRepository("PFESiivtBundle:Categorie","PFESiivtBundle:Evenement", "PFESiivtBundle:Projet")->findBy(array('idPublication' =>$respub),array('id'=>'DESC') ); ...

Git Move older commit(s) to new branch so I can merge them back later

git,repository,git-branch,git-merge
Yet Another Git Move Commit Question. I have a master branch that all work is being committed to. A client decided feature 123 is no longer wanted in a release (to be released later). I need to pull out commit B (for a lack of my complete understanding of Git...

JPA query : select only some fields of my object and then create my object

jpa,repository,jpql
I have a JPA repository custom query : @Query("Select id, nom, code, codeComptable, typeClient from Client") List<Object> findAllWithoutForeignKey(); This query returns a Java.Lang.Object : [1, TEST X, GUHHR, 1566FR487, TypeClient{id=1, nom='GARAGE', actif='true', dateDerniereModif='2015-01-03'}] I don't know how to access the values of my object. I have tried everything I could...

OrderBy & OrderByDescending DateTime In Generic Repository?

c#,datetime,repository,entity-framework-6
In my Solution, create Generic Repository public abstract class GenericRepository<C,T> : Repo.IGenericRepository<T> where T : class where C : DbContext, new(){ private C _entities = new C(); public C Context { get { return _entities; } set { _entities = value; } } public virtual IQueryable<T> GetAll( Expression<Func<T,object>> predicate, Sorted...

Adding a dependency to a repository with Xcode 6.1

ios,xcode,svn,xcode6,repository
I'm new to programming on iOS and I'm running into a roadblock with adding dependencies to my repository. When I drag and drop a framework into the project directory and reference everything, I can build the project no problem. The issue is when I commit my project to the repository,...

How to skip some files while committing in GitHub?

github,repository,skip
I have some configuration files in my solution. For development purpose I've done some configuration changes in those files. But i don't want those files to be get committed / pushed in my develop branch in GitHub repository. Is there any way I can add file names which I want...

JPA Repository - one to many - issue with removing one child

java,jpa,repository,one-to-many
I have a one to many relationship between Father and Son. I am working with JPA Repository. If I delete a son with id 54 and then get all the sons again : sonRepository.delete(id); List<Son> sons = sonRepository.findAll(); I am getting this error : javax.persistence.EntityNotFoundException: Unable to find com.myapp.domain.Son with...

Adding project directory for git

git,version-control,repository
I have a development server for my php project. The project directory is /var/www/html and i am planning to incorporating git for this development server. I have created a git user and added my local pc's public key to server's .ssh/authorized key location. My question is that where should i...

Laravel - Correct Work Organization

php,laravel,model-view-controller,repository
Recently I have finished to read an OOP book, And I have decided to create a project with Laravel Framework. In the book the author recommended to divide the classes according to their types: DTOs, BLs and Repositories. Laravel made me a little confused how to organize my system. I...

What is the best approach to reuse multiple repository criterias?

java,jpa,design,repository,criteria
I have an repository layer that have many methods combination, to match search criterias.. What is the best approach to reuse this criterias? I think that methods name like findByNameAndIdAndBirthdayAndAccounaNumber is not a good idea ! Thanks ! public Order findByIdAndName(String orderId) { List<OrderEntity> list = entityManager.createNamedQuery(OrderEntity.QUERY_FIND_BY_ORDERID_AND_NAME, OrderEntity.class) .setParameter("orderId", orderId)...

GITHUB: How to convert forked repository that was turned standalone back t a fork

git,github,repository,fork
I have a github fork that was turned standalone after the main repository changed from private to public. According to github documentation, if a private repository is made public, each of its private forks is turned into a standalone private repository and becomes the parent of its own new repository...

How to convert a GIT repo to a submodule, which is nested in another (parent) GIT repo?

git,version-control,repository,git-submodules,git-extensions
I have a GIT repo which has subfolders as GIT subrepositories. + main (local GIT repo) + subdirectory1 + plugin1 (created as local GIT repo) + plugin2 (created as local GIT repo) + subdirectory2 + subdirectory2a + plugin3 (created as local GIT repo) + subdirectory3 The plugin1, plugin2, plugin3 are...

Spring: Autowired is null in ejb class

spring,ejb,repository,autowired,inject
I have the following situation: @Controller public class myController { @Autowired private IProxy service; public ModelAndView init(HttpServletRequest request, HttpServletResponse response) throws Exception { List<String> list = service.getName(); } } Then my Service is define as follow: public interface IProxy { public List<String> getName(); } Proxy class is responsible for the...

Github App for Mac crashes upon opening

osx,github,crash,repository
Downloaded the Github for Mac app and it crashes instantly upon opening. Here is the error report: Application Specific Information: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Received error from name: in binding for key path "currentActionViewModel" on : NSError { domain: GTGitErrorDomain, code: -12, description: "Failed to...

How do I keep GIT repositories inside Dropbox?

git,github,repository,dropbox
So I've seen similar questions asked before, but I'm not thinking about pushing/pulling from a repo on Git's servers, this is just as a place to keep the repo locally on my machines. I'd still push/pull to GitHub. I know it can technically live wherever I want it to, but...

Is there a way to use @Query to return a MongoDB $sum result?

spring,mongodb,annotations,repository,aggregation
I'm pretty new to both MongoDB and StackOverflow (as a questioner). I've seen a great response for how to return a MongoDB "count" projection from a Spring repository using the @Query annotation (Count in Spring data mongodb repository). Basically the count example looks like: @Query(value = "{'productDetails.productType': {$regex: ?0, $options:...

Trying to access Oracle's Maven repository

oracle,maven,repository
I'm attempting to access Oracle's repository. Oracle doesn't make it easy. However, I'm attempting to follow the documentation that Oracle provided. I've: Approved the licensing agreement on my system (in case there's some sort of cookie that needs to be set). Set both M2_HOME and MAVEN_HOME to /usr/share/apache-maven. Created an...

Git keep file in repository but stop tracking local changes

git,github,version-control,repository
I have an app.properties file with dummy values that I have committed and pushed to my Git repository. I would now like to tell Git to: Stop tracking changes to my local app.properties file and Keep the initial app.properties file that was committed to my repository intact. I have already...

How to turn local source code directory into remote git repo?

git,repository
I have a directory on my Windows machine with some source code that I want to share with a couple of other people to develop it further together. I am thinking of using git, but since I want this repo to be (1) private and (2) free, this seems to...

Can I return DTO from my repository in some cases?

c#,entity-framework,design-patterns,repository,dto
I have two entities in my "domain assembly". Message - Id - Title - Content - IsMandatoryReading MessageUser - MessageId - UserId // The user who already read the message In my "Infrastructure assembly" I have the MessageRepository with the methods Save, Delete, GetAll, GetMany, FindById etc, all refer the...

Netbeans git can't checkout local branch - Conflicts during checkout

git,netbeans,repository,branch,local
Here is my problem: I have cloned project from remote server (branches develop & master) I checked out develop after changes, commited & pushed to remote, everything is fine pull from remote while still in develop commit after pull switch or checkout to new created branch Page from develop -...

Symfony2, get locale in repository class

php,symfony2,repository,locale
In my project with symfony2 (2.0) I have a repository class with all querys inside. But in this querys I need the locale (from session?) but inside the repository I can't get this variable (in the controller I havn't any problem) In the repository class I tried this: $request =...

How to create a new 'Local' remote repository for an existing project with Git

git,repository,git-remote
I have just started a new git project that is so far stored on my local Mac. Now that the project has a few revisions checked into it, I would like to push these changes to a network location (I have a Time Capsule in my local network, where I...

Why does Maven want to download a module from a remote repository

java,maven,repository
Given the following modules in my pom.xml <modules> <module>core</module> <module>middle-layer</module> <module>top-layer</module> <modules> Where top-layer depends on middle-layer which depends on core. When I run clean install it will build and install core and middle-layer successfully, but not top-layer. It tries to download middle-layer from a remote repository instead of using...

findAll on non object in extbase

repository,extbase,findall,typo3-4.5
I just created an extension in typo3 4.5 with one model (product). I created the "productRepository" then injected it in the ProductController but I still get the Call to a member function findAll() on a non-object here is how the ProductController looks like : /** * @var Tx_PiProductDetail_Domain_Repository_ProductRepository */ protected...

How to import a repository into another with Git

git,import,repository
I want to import the sources of an external repository into my repository. For example from this project: https://github.com/SpongePowered/Sponge Where "Mixin" is imported. I want to do the same thing, but I don't know how....

Git pull from another repository without history

git,laravel,github,repository,revision-history
I'm here because : I try to connect my repository to another in order to keep "up to date" but I'm trying not to pull the whole history of the other repo... To explain, I use Laravel 5 (https://github.com/laravel/laravel) and I have created my own master (which is a fork...

Getting code from my forked repository

git,laravel,repository,laravel-5,composer-php
I made a fork from a repository called "chrisbjr/api-guard". the repository latest version is v2.2.2, and I made a release v2.2.3 from my fork. I have my own branch which is dev-fulluth, to get the code from my fork not from the main repo, composer has to contain the below...

Web Api returning NullReferenceException using repository

c#,asp.net-mvc-4,repository,web-api
I am trying to call in to a repository method to fetch some data, which be returned from a Web Api 'Get' request. public class BookRepository : IBookRepository { public Book GetBookInfo() { return new Book { Title = "Book1", Chapters = new List<string> { "Chapter1", "Chapter2", "Chapter3", "Chapter4" }...

How to add css to my page via Git Hub raw?

html,css,github,frameworks,repository
I have a css file on my git hub. I get a link to raw file (example) When I add it by link I see styles not applied to my elements. Viewing source code in Firefox I see a working link to my style. <link rel="stylesheet" type="text/css" href="http://raw.githubusercontent.com/Koi7/github-linker/master/fork-me.css"> ...

Saving entity in repository does not work SPRING

java,spring,hibernate,repository,spring-data
I'm trying to save entity in repository but it does not work at all. Repository is Autowired and in runtime I use saveAndFlush to save entity. I'm using PostgreSQL. Above test methods I added comments with explanation what is going on. I expected that method saveAndFlush should work but it...

Git: List the number of branches merged to Master but not on Release branch

git,repository,git-merge,git-diff
I am using Git repository. I have a Release branch which is behind Master branch. I normally merged development branches to the Master and only QA verified branches merged to Release. Is there anyway to list out the branches which have been merged to Master but not merged to Release...