Questions tagged [repository]

1

votes
1

answer
63

Views

Package.json file not found when using kubernetes

I trying to setup kubernetes on my local environment using docker. I've built the necessary docker image with this Dockerfile: FROM node:9.11.1 WORKDIR /usr/src/app COPY package.json /usr/src/app/ RUN npm install COPY . /usr/src/app/ EXPOSE 3002 CMD [ 'npm', 'start' ] I then pushed this image to my...
Christofer Johnson
1

votes
2

answer
368

Views

How to find or install missing Commands in PowerShell Core (pwsh)?

I am using multiple versions of PowerShell, but only 2 can find all standard commands (or is it commandlets?). The original install is Windows PowerShell v5.1, but then I also have PowerShell Core (pwsh.exe) v6.1.1 installed. The problem is that I am trying to run some firewall-related stuff in Pow...
not2qubit
1

votes
3

answer
88

Views

How many docker images can I store in Docker Private Repository

I have created one private repository in docker hub. My doubts are How many separate images can I store in my single private repository? Is there any image size restriction? When do I need more than one private repository?
AATHITH RAJENDRAN
1

votes
2

answer
239

Views

Moving the Git Repository to a Child Folder

I'm using Github with my Wordpress website. Currently it tracks the parent Wordpress folder, which essentially tracks everything. I'd like it instead to have a git with only the theme, which is located at wp-content/themes/lighthouse Is there a simple way to have this repository only be the theme r...
James Mitchell
1

votes
0

answer
501

Views

Android Clean Architecture: Repository pattern concerns

I am currently developing an Android app, trying to follow the Clean Architecture guidelines. The app retrieves the latest news headlines and lets the user customize their news feed. In my domain layer, I have the following repository interface: interface ArticleRepository { fun getTopArticles(requ...
Elias
1

votes
0

answer
100

Views

Symfony Repository service configuration with multiple connections

I have a Symfony app with two different database connections. Until yesterday I only needed the default connection but now I need the other one. I configure my services in yaml and I have absolutely no idea what I have to do differently for the other connection to inject my repository. The configur...
jvda
1

votes
0

answer
375

Views

Artifactory move/copy artifacts between remote repositories

for local repositories it works perfectly well. I use the instruction from https://jfrog.com/knowledge-base/is-there-a-way-to-rename-a-repository/ However, when the repos are remote ones, the following errors are showing up: 1) Remote repo names curl -k -X POST -u admin 'https://myartifactory/artifa...
Marek Mrowca
1

votes
0

answer
31

Views

Repository pattern, different identifiers

TLDR; I have one repo interface and multiple data sources, each with a different data identifier - how can I maintain having only one method in my interface? I have a need to read a domain object OrderData from two different repositories: one is an outside service and the other one is a local databa...
Robotron
1

votes
1

answer
1k

Views

Is it possible to deploy artifacts from local folder in Sonatype Nexus Repository Manager 3.x

I use Sonatype Nexus Repository Manager 3.5.2 and want to add artifacts to nexus blob store from local folder (where nexus is lockated). I couldn't find solution in Nexus documentation and tryed to find in the Net - unsuccessfully. Is it possible and how to do this (maybe Nexus has some plugin)? thx...
kozmo
1

votes
1

answer
104

Views

Using custom maven repo with AWS CodeDeploy

Iam moving to AWS right now and my SpringBoot builds using a custom lib in a currently local mvn repo. I moved the mvn lib to a repo on S3 bucket. Now the EC2 server Maven needs to access this repo. Therefore it needs the user credentials of the S3 user on Maven-level. On my machine I set this user...
Gregor Sklorz
1

votes
0

answer
143

Views

Android repository design how to avoid boilerplate code

I have local SQLite(Room) database for my app I'm using repository design pattern for caching data (I will connect it to remote repo later). I have three different database tables TableOne TableTwo and TableThree. I'm really new to these development patterns and can't find accurate information how i...
Tadas
1

votes
0

answer
52

Views

Pagination and LazyLoading in EFCore with Generic Repository Pattern

I am using EFCore and Generic Repository Pattern for my project and on my Core layer I have IEntityRepository interface: public interface IEntityRepository where T : class, IEntity, new() { PagedResult GetAll(int pageNumber, int pageSize, Expression filter = null, params Expression[] includeProperti...
Sümeyya Tuğçe Arar
1

votes
1

answer
184

Views

Can someone provide an example about Realm data store repository with Xamarin.Forms and UI databinding?

I am currently developing an app with Xamarin.Forms and I choose Realm as my data provider. I would like to use the repository pattern in order to get more flexibility on changing my data provider and to improve my code quality/lisibility. But the Realm dotnet implementation is still young and I did...
Sebastien Delaherche
1

votes
1

answer
120

Views

TortoiseSVN A request to send or receive data was disallowed because the socket is not connected

Who can show me the reason error TortoiseSVN, when I connect SVN-Repo to update resource The error detail: I has already checked the SVN server is running Ping to IP server ok I attached message error: Error: Unable to connect to a repository at URL 'https://........' Error running context: A reque...
Huỳnh Ngọc Bang
1

votes
0

answer
198

Views

Git submodule track branch or default

I know that git submodule can track active branch on superproject, but I want something more complex. For simplicity lets say i have 2 repos: ProjectX SharedSources SharedSources is a submodule of ProjectX. ProjectX will have master, development and few feature branches with name of the tasks. S...
user2463506
1

votes
1

answer
55

Views

Control yum update packages sequence

Couldn't find an answer anywhere so I will try here. Is there a way to tell yum, while running yum update, to update a specific package as the last one? I am not talking about requires / dependencies, It just needs to be updated after all other packages on the system. In a nutshell, I manage local r...
Shlomi
1

votes
1

answer
290

Views

How to deal with many-to-many relationships in the general repository, unit of work pattern?

For my thesis I decided to create something in MVC and to challenge myself I added a DAL and BL layer. I created 'services' in BL that allow me to work with my Entities. I am really wondering if I understood the pattern correctly, because I am having issues dealing with many-to-many relationships -...
Rick Regeling
1

votes
1

answer
40

Views

how to create a single method in repository pattern to get all data but works for all the class in dbSet

im very confused in the repository pattern ,the reason where ever I seen this pattern on the internet there is no method to Select ALL() without specifying any filter,because for example imagine I have table name is Students,i want to select all student names,and also I need to select all books from...
1

votes
0

answer
228

Views

Proper Care and Feeding of a Dapper IDBConnection

What's the best way to manage a database connection in Dapper, the way that takes the best advantage of its feature set? I know, for example, that Dapper has a static query cache, so that identical queries presented to it in the future will execute faster. I also know that this cache can get too la...
Robert Harvey
1

votes
0

answer
31

Views

how to make the custom repositories maven in Android studio appear in IDE project structure dependencies

I have a private maven server in google cloud. in the main gradle I add the maven reference. allprojects { repositories { ... ... maven { credentials { username 'xxxx' password 'xxxx' } url 'https://xxxxx-xxxxx-maven.appspot.com' } } } If I add the reference directly to the gradle of the app, it wor...
user3224940
1

votes
0

answer
1.4k

Views

Error creating bean with name | Unsatisfied dependency expressed through constructor parameter 0

I want to ask, whats wrong with this error? I already check with other entity, they're doing good. But, can you guys help me for this trouble? Thankyouu Error creating bean with name 'masterVersionServiceImpl' defined in file Unsatisfied dependency expressed through constructor parameter 0; nested e...
M Lukmanul Hakim
1

votes
1

answer
356

Views

Symfony 4 one entity, two entity Manager

Hello everyone, I'm trying to have 2 entityManagers for one entity in Symfony4 but I have some trouble to do this. When I persist an entity it works,(For example if have two entity Mananagers : Customer and Default ,when I use Customer or Default to persist) but when I want to use Repository, The fi...
Mendrika RALISON
1

votes
1

answer
140

Views

Cloning a repo from my own GitHub on a new machine

How can I clone a repo from my own GitHub to a new machine and continue pushing to the same repo smoothly?
Zed1
1

votes
1

answer
68

Views

Second maven-repository is ignored

I have these lines in my app-level build.gradle repositories { mavenLocal() mavenCentral() maven { url 'https://maven.google.de' } maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } } it seems like the second maven repo is ignored this are my dependencies: dependencies { //... i...
el_denko
1

votes
1

answer
35

Views

How to make a backup of (only) some system files with Mercurial

Making a repository out of a given directory is quite straightforward. Here, I need to backup only some sparse files and directories which are spread out in the directory tree. Say, some configuration files, like /etc/ssh/sshd_config, /etc/fail2ban/jail.local, and the /var/www/, ~/.local/bin/ and ~/...
nightcod3r
1

votes
1

answer
60

Views

Entity framework 6, ToListAsync is returned randomized data

I'm working with EF6 (using MySQL provider) and I've found the strange behavior. I use TakeWhereAsync method from my generic repository. public async Task TakeWhereAsync(Expression sortExpression, Expression whereExpression, bool desc, int pageSize, int pageIndex) { var skipRows = (pageIndex - 1)...
Imixal
1

votes
1

answer
638

Views

How to implement custom method of CrudRepository in Spring boot 2.0?

I can find this question has been asked earlier. But neither the answer nor the documentation is working for me. I follow this doc. I would like to add 2 custom interface to the repository. I must be doing something wrong in my code. The compiler gives error: Error:(18, 8) java: com.ma.home.service...
masiboo
1

votes
0

answer
297

Views

How to implement Repository pattern filter function when domain entity and Entity Framework entity are different class?

I'm working on a n-tier layer project in which business domain entity and Entity Framework entity are defined as difference classes. The Domain.Order class and DAL.Order class in code below. Now, I'm trying to implement the Repository Pattern. In order to map between Domain.Order class and DAL.Orde...
ricky
1

votes
1

answer
410

Views

Spring data Find by list element

I would like to ask if its possible to write Spring JPA method in repo avoiding SQL and @Query. This method have to return list which joined list value is equal to something. This is class: class Temp1{ val a: String, } This is class that contains above class: class Temp{ val aSet: Set } And so I w...
MrNetroful
1

votes
1

answer
230

Views

Spring Batch/Task Repository Data Mismatch when introducing use of Tasks after historic Spring Batch data already exists

My project has 20+ batch jobs that are built with Spring Batch and have been in Production for a couple of years. We are currently in the process of migrating them to individual Spring Boot applications that are built with Spring Batch and Spring Cloud Task. These will then be deployed as Tasks in S...
lframirez89
1

votes
0

answer
56

Views

RxJava for Repository: saving data after receiving it

I'm newbie to RxJava and I'm trying to use it with Repository pattern (via Clean Architecture). Here is my repository interface: public interface IRepository { Completable add(T entity); Completable add(List entities); Completable remove(T entity); Completable remove(List entities); Single get() thr...
whizzzkey
1

votes
1

answer
219

Views

Stringbuilder with JPA repository

I have a requirement to construct a dynamic service. I am using Stringbuilder but I am not sure how to use this with JPA repository. I build an SQL native query using the Stringbuilder.toString() and then pass this to the JPA interface. I get a 'syntax error' when I run this. But when I run the same...
Shrut Biswas
1

votes
2

answer
137

Views

Filter dataset in repository design pattern C#

I have a given below query, which is perfect SELECT MAX(WarehouseId) AS WareHouseId, MAX(CompanyId) AS CompanyId, MAX(ProductId) AS ProductId, SUM(AvailableQuantity) AS AvailableQuantity, PurchaseItemPrice FROM PurchaseItem WHERE CompanyId = 1 GROUP BY PurchaseItemPrice OR...
Ibtisam
1

votes
0

answer
333

Views

What is the best way to implement “GetAll, GetBy” methods in repository pattern with Entity Framework Core?

I implement a repository pattern in my pet-project and I have a little question about realization of methods which return collections of items (for example: GetAll, GetBy). In current implementation the code of that methods look like below: public IEnumerable GetAll() { return _context.Set().ToList(...
Nikita Litvinenko
1

votes
0

answer
134

Views

spring repository EntityGraph JoinFormula Lazy loaded even when I don't want to

I have 3 Entities, Mouvement links Agent and Poste. I can't join directly poste and agent because it depends on the date of the movement. @NamedEntityGraph(name = 'graph.Agent.poste', attributeNodes = @NamedAttributeNode(value = 'poste')) @Entity @Table(name = 'agent') public class Agent extends Res...
ScorprocS
1

votes
1

answer
26

Views

View file changes in git in eclipse

I can view changes made to an individual file in git (history) from the terminal. How do I view all changes (history) to individual files in eclipse?
tech_logman
1

votes
1

answer
168

Views

Winforms DbContext Per Form

I am working on a WindowsForms application. I am using Repository, UoW, DI and EntityFramework. The best practice in such applications is to use a DbContext per windows form. My problem is that when i resolve a form IoC, the form is injected with my business services. This should by default create...
ykh
1

votes
1

answer
218

Views

Clashes between count() methods - CrudRepository - Spring

I prefer to warn you, my english is not perfect but I'll try to do my best. I'm actually in an internship and my task is to create a webservice. Before this, I'm supposed to work with Maven and create repositories, models and others. For now, I've got a problem with the repository of a simple Java c...
Léo
1

votes
0

answer
27

Views

How do you get the number of comments made by user across all pull-requests in an organization in Bitbucket?

we are looking to generate some productivity metrics in Bitbucket and its getting very hard to get this data. I know we have to use the api in some way, but am not seeing how do you get this in the right way. Basically, we need all the comments made per user (for all users) across any pull request i...
Sandeep
1

votes
1

answer
59

Views

Setting Up a Repository Using VisualSVN and TortoiseSVN [duplicate]

This question already has an answer here: TortoiseSVN 1.71 and VisualSVN 2.51 will not connect after update 4 answers I have created a repository using VisualSVN and use TortoiseSVN so my friends can check in/out files of the project we're working on. I am able to access the repository on my comput...
Lotzi11

View additional questions