Questions tagged [jpacontainer]

Vaadin JPAContainer offers a highly flexible API that makes things easy in simple cases while allowing extensive flexibility in demanding cases.

Vaadin JPAContainer offers a highly flexible API that makes things easy in simple cases while allowing extensive flexibility in demanding cases.

21 questions
4
votes
1 answer

JPAContainer keeps database's connections open

i'm having this problem: with vaadin 7, i've configured my persistence.xml , here's the code http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" version="2.0">
Leviand
  • 2,745
  • 4
  • 29
  • 43
3
votes
1 answer

hibernate.jpa.HibernatePersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider

im using vaadin to develop a UI for my application running hibernate 4.3.1 What I'm trying to do is bind the data to the vaadin JPAcontainer then use it in the Grid component to allow lazy-loading. But when I try and create the EntityManager it…
Reda
  • 470
  • 2
  • 11
  • 19
1
vote
0 answers

JPA Container filter one to many relationship

I have a Vaadin8 application and the following two classes. (Classes simplified for readability) Car Class: public class Car implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy =…
akafortes
  • 149
  • 1
  • 5
  • 18
1
vote
1 answer

Lack of persistence on server reset while using JPAContainer with Vaadin Framework

I'm using the JPAContainer implementation in my Vaadin (GWT based Java web application framework) application. I've been running into slight problems as the development is nearing to an end, all of which are to a degree related to the persistence…
1
vote
1 answer

Vaadin: What is the point of a H2 database?

The JPAcontainer tutorial here: https://vaadin.com/download/jpacontainer-tutorial/ Indicates that you need a H2 database driver with JPAcontainer. I don't understand why? - what functionality do you loose from not having H2 as well as JPAcontainer?
Daniel Paczuski Bak
  • 3,720
  • 8
  • 32
  • 78
1
vote
1 answer

Vaadin and Spring Data Neo4j 4.0.0 Persistence Issue

I have a Vaadin application and I'm trying to incorporate Spring Data Neo4j 4 into it. In my Vaadin app, I use JPAContainer to access some MySQL database, and JPAContainer depends on the javax.persistence jar in order to access it. When I…
1
vote
2 answers

JPAContainerFactory does not create the database table

I expected JPAContainer to create a database table automatically when 'hbm2ddl.auto' is set to 'update', however this seems to not be the case. Is there something wrong in my configuration or should i use something else to get the desired…
FableBlaze
  • 1,785
  • 3
  • 16
  • 21
1
vote
0 answers

JPAContainer doesn't commit OneToMany

Yet another JPAContainer question, this time it's about committing OneToMany relationships. @Entity(name="CLAZZES") public class Clazz implements Serializable { private static final long serialVersionUID = 1L; @Column(name="CLAZZ_ID",…
Atmocreations
  • 9,923
  • 15
  • 67
  • 102
0
votes
1 answer

JPA container OR filter - Vaadin application

I have a vaadin7 applicaiton and a JPA Container for an Entity class. I have ListSelect control that I use to filter that container private ListSelect generateBrokerSelects() { ListSelect broker_ListSelect = new ListSelect("Broker:"); …
akafortes
  • 149
  • 1
  • 5
  • 18
0
votes
0 answers

java.lang.ClassNotFoundException: javax.persistence.spi.PersistenceUnitInfo from JPA Console

I am getting below error whenever I am trying to connect to the Database using JPA Console. I am connecting to oracle 12c DB. java.lang.ClassNotFoundException: javax.persistence.spi.PersistenceUnitInfo at…
Jeff Cook
  • 7,956
  • 36
  • 115
  • 186
0
votes
1 answer

Vaadin JPAContainer: ManytoOne relation with EmbeddedID

There are questions similar but not quite. In those cases (and in the JPAContainer examples) the Entity part of the ManyToOne relationship has a single key. In my case it is an embedded id. My code is based on the Address Book example. Here are the…
javydreamercsw
  • 5,363
  • 13
  • 61
  • 106
0
votes
1 answer

How to get entity id after JPAContainer committed?

I use Hibernate and JPAContainer. Here the code of entity and unexpected behavior part: // MyEntity @Entity class MyEntity { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; private String name; …
codemonkey
  • 157
  • 2
  • 11
0
votes
0 answers

JPA merge is not happening properly

//parent class @OneToMany(mappedBy="parentClass",cascade=CascadeType.PERSIST,CascadeType.MERGE,CascadeType.REMOV CascadeType.REFRESH}, orphanRemoval =false, fetch = FetchType.EAGE @CascadeOnDelete private List
0
votes
0 answers

Vaadin Grid: Converter$ConversionException when trying to edit

I'm trying to make my grid editable grid.setEditorEnabled(true); but when I run the application and double-click on any cell it throws the following exception Caused by: com.vaadin.data.util.converter.Converter$ConversionException: Unable to…
Reda
  • 470
  • 2
  • 11
  • 19
0
votes
1 answer

Vaadin JPAContainer - no transaction is in progress

I've been trying to use Vaadin JPAContainer with a JTA datasource in JBoss, but I keep getting this error when committing a FieldGroup: "no transaction is in progress" Here's my persistence.xml
1
2