persistence Questions

5

Solved

I want to generate model Class from mysql database, but I cannot find the persistence tool window which is easily searched in IDEA 14.
Prefiguration asked 20/12, 2015 at 2:42

9

Solved

I'm developing a game with a database connection, and I use JPA to persist my data. Here is my Game entity : @Entity @Table(name = "game") public class Game implements Serializable { private stati...
Pearle asked 25/11, 2013 at 12:50

5

Solved

Can someone help me write the dependency for javax.persistence. I have googled it but nothing worked. I bumped into this page that gives some details on how to write the dependency, but yet i am u...
Pseudocarp asked 23/11, 2011 at 13:35

11

Solved

If I pass an empty list into a JPA query, I get an error. For example: List<Municipality> municipalities = myDao.findAll(); // returns empty list em.createQuery("SELECT p FROM Profile p ...
Peatroy asked 21/3, 2010 at 22:4

6

Solved

I'm using React Hook Form v7 and I'm trying to make my data form persistent on page reload. I read the official RHF documentation which suggests to use little state machine and I tried to implement...
Impeccable asked 17/3, 2022 at 11:59

6

I've these two simple entities Something and Property. The Something entity has a many-to-one relationship to Property, so when I create a new Something row, I assign an existing Property. Somethin...
Ia asked 3/8, 2017 at 18:4

7

I have a rather large dict (6 GB) with a structure along the lines of: {((('word','list'),(1,2),(1,3)),(...)):0.0, ....} and I need to do some processing on it. I'm trying out several document clu...
Adelaadelaida asked 20/5, 2009 at 22:2

2

Solved

I created a JavaFX Ant project in Apache Netbeans 12.0 with the JDK 11 from bellsoft. Then i created a database connection with an sqlite database, which is a file on my pc. In this database are tw...
Schafer asked 19/7, 2020 at 11:50

3

I'm trying to store a java Date with milliseconds in MySQL's timestamp column using Hibernate, but the millisecods are stored always as .000. The definition of the column in hibernate is as follow...
Charissa asked 17/1, 2016 at 13:37

13

Solved

How do i tell if one instance of my program is running? I thought I could do this with a data file but it would just be messy :( I want to do this as I only want 1 instance to ever be open at one ...
Nez asked 19/1, 2009 at 23:7

4

Solved

Is is possible to rename a PVC? I can't seem to find an evidence it is possible. I'm trying mitigate an "No space left of device" issue I just stumbled upon. Essentially my plan requires me to r...
Hubert asked 23/1, 2018 at 14:0

19

Solved

I am using Room architecture component for persistence. I have created generic DAO interface to avoid boilerplate code. Room Pro Tips But my code doesn't compile saying "Error:(21, 19) error: Typ...
Marquis asked 28/12, 2017 at 22:42

5

Solved

When they appear on a field/getter of an @Entity, what is the difference between them? (I persist the Entity through Hibernate). What framework and/or specification each one of them belongs to? @N...
Oxalate asked 16/9, 2011 at 2:20

0

I would like to have a settings entity with SwiftData. I would like it to store my active entity that the user was working with when they last used the app, plus a few other settings that I would l...
Efthim asked 1/10, 2023 at 0:29

5

Solved

What exactly is the difference in the following two declarations B is the owning side @Entity class A { @Id int id; @OneToOne B b; } @Entity class B { @Id int id; @OneToOne(mappedBy="b") ...
Dialectician asked 10/6, 2012 at 12:6

5

Solved

Have put the persistence.xml in the classpath of the project in eclipse because before the error was that the file was not found. Now gives this error: Caused by: javax.persistence.PersistenceEx...
Peugia asked 28/12, 2013 at 19:56

4

Solved

I am attempting to insert a new record into a table that I know is unique before hand. I have tried calling save() on the object, but that does a bunch of SELECT statements before doing any INSERTs...
Whichsoever asked 28/9, 2011 at 19:39

7

Solved

I have developed application for drawing some shapes (lines mostly) , now i need to be able to store sketch to a file, I know that delphi has build in routines for object persistence, but I have ne...
Spiritless asked 28/12, 2008 at 19:22

10

Solved

I am new to the Java world and JPA. I was studying JPA and came across many new terms like Entity, persistence. While reading, I could not understand the exact definition for Persistence Context. ...
Curzon asked 12/11, 2013 at 13:12

0

has anyone figured out how to use swiftdata in SwiftUI with CloudKit to share data among other users and set permissions? Thank you! I checked apple’s documentation along with the internet in gener...
Communalize asked 26/7, 2023 at 6:8

3

Solved

The official documentation states that: It is recommended to have multiple Dao classes in your codebase depending on the tables they touch. and that one can mark a method with the Transaction anno...
Lactary asked 9/1, 2018 at 8:24

2

Solved

I have tried various suggestions on solving the above error but its still there. Below is my repository. How can I solve this? @Transaction public interface ApplicationRepository extends JpaReposit...
Chromo asked 5/8, 2021 at 8:18

3

Solved

Sorry if its sound simple from the title. I google before asking but unable to understand https://www.google.co.in/?q=what+is+a+persistent+login+session. I am following PassportJS docs where it is...
Sinciput asked 11/11, 2014 at 12:29

9

Solved

I was hoping to write a python script to create some appropriate environmental variables by running the script in whatever directory I'll be executing some simulation code, and I've read that I can...
Yate asked 3/4, 2009 at 22:55

4

Solved

So, I have this scenario where I need to take a header record, delete the details for it, then re-create the details in a different way. Updating the details would be way too much trouble. I basic...
Hippolytus asked 8/2, 2017 at 21:33

© 2022 - 2024 — McMap. All rights reserved.