Questions tagged [persist]
558 questions
5
votes
2 answers
In Jenkins, is there a way to persist npm packages so I don't have to install them in each build?
I'm using Jenkins (CloudBees) to build my project, and this runs some scripts in each build to download some node packages using npm.
Yesterday the npm registry server was having troubles and this blocked the build cycle of the project.
In order not…

farolfo
- 388
- 1
- 4
- 13
4
votes
5 answers
Why nothing happens when I persist?
I hope I does not ask a question you already answered, but I am not able to understand my problem... I explain :
I work with Spring and Hibernate, I have a Manager interface, and a Manager that implements my interface. Manager is like this :…

user1145057
- 51
- 5
4
votes
2 answers
Why Vuex-persist doesn't store anything in localStorage?
So, in my project (Vue-cli + TypeScript) I need to store user data to locaStorage. For this purpose I decide to use vuex-persist (npm plugin) alongside with vuex. But in DevTool, in localStorage doesn't appear anything. What is wrong in my code.…

Vasile Mustuc
- 51
- 1
- 5
4
votes
3 answers
JPA OneToMany/ManyToOne relationship not working - What am I missing?
I know this has been asked a lot of times before, I know it because I've searched for every related question to my problem to try to find a solution, however, none of the proposed solutions are working for me and I'm pretty sure that I have to be…

sadAngryMane
- 43
- 1
- 1
- 4
4
votes
4 answers
Getting the ID of the persisted child object in a one-to-many relationship
I have two entity classes A and B which looks as follows.
public class A{
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@OneToMany(mappedBy = "a", fetch = FetchType.LAZY, cascade = {CascadeType.ALL})
…

sanjayav
- 4,896
- 9
- 32
- 30
4
votes
2 answers
Cascade delete not working if Cascade.persist and Cascade.remove used together in parent Entity in Hibernet
I have a table relation defined as show below and I am trying to cascade persistance and delete from Entity2(Table2) mean delete recor from table2 should remove the entry in table3 and saving data in table2 persist the related data in table3 as…

deepak al
- 41
- 3
4
votes
1 answer
Another "The class 'X' was not found in the chain configured namespaces
I get this error when I'm persisting my entity
Another "The class 'X' was not found in the chain configured namespaces
This used to work before I moved my Symfony from windows to Linux.
my controller:
public function…

Eagle1
- 810
- 2
- 12
- 30
4
votes
1 answer
JPA/Hibernate tries to store too many parameters in entity with composite Id (and doubling properties)
I have entity with composite Id
@Entity
@IdClass(value = BorrowId.class)
@Table(name = "BORROW")
public class Borrow {
@Id
@Column(name = "BOOK_ID", insertable = false, updatable = false)
private long bookId;
@Id
@Column(name =…

razor
- 2,727
- 6
- 33
- 45
4
votes
3 answers
Symfony2 remove and save many to many relations
I need your help today. I'm working on a small application using Symfony 2.1 but I have a base problem, I have to tables with a many to many relation which creates a third table:
class Usuario implements UserInterface {
/**
*…

soni
- 687
- 1
- 8
- 23
4
votes
1 answer
How to querying the database inside the makeApplication function
I'm attempting to fork a non-web service in my Yesod application, and it needs to do some interaction with database. From this post I decided to put the service in makeApplication. I would like my service to return some value when certain things…

HHC
- 2,513
- 2
- 18
- 26
4
votes
2 answers
Android: onSaveInstanceState in Back button
I am developing an application in which i am overriding the back button. I created a check box. On click of which i am calling intent for:
startActivityforResult();
And also maintaining the state of activity as :
@Override
public void…

Manoj Fegde
- 4,786
- 15
- 50
- 95
4
votes
2 answers
Doctrine2 don't persist some fields
A few minutes ago I found an error in Doctrine2.
I added some fields in my entity, then refresh the mysql table and going to persist ago I noticed that the new data is not stored in the table.
Tried a var_dump the value of "->getXXX()" and the…

Mateu
- 73
- 1
- 8
4
votes
3 answers
Making variables persist even after program termination
I would like to have a variable to persist even after program termination. In other words, I'd like for a variable to remain in the memory even after an application exits from the main function. So, if my application is launched again, it could…

Alexey
- 5,898
- 9
- 44
- 81
4
votes
1 answer
Will JPA try to cascade persist and already persistent entity?
Will JPA try to cascade persist on an entity that is already persistent (and non-detached)?
To make things clear, here's my situation: I want to persist a new User:
public void addUser(){
//User is an entity that is related to many Groups
…

Pedro Peixoto
- 219
- 2
- 6
- 16
3
votes
3 answers
keep checkboxes checked after page refresh
I have a couple of checkboxes. when any of them are clickd/checked and the search button is clicked, will grab their values and pass to the url as querystring and refresh the page returning results matching the passed query values.
like this:…

Anjana Sharma
- 4,535
- 5
- 37
- 51