gilead

Security question: how to secure Hibernate collections coming back from client to server?

走远了吗. 提交于 2019-12-24 15:13:33
问题 I've got a simple pojo named "Parent" which contains a collection of object "Child". In hibernate/jpa, it's simply a one-to-many association, children do not know their parent: these Child objects can have different type of Parent so it easier to not know the parent (think of Child which represents Tags and parents can be different object types which have tags). Now, I send my Parent object to the client view of my web site to allow user to modify it. For it, I use Hibernate/GWT/Gilead. My

Hibernate, GWT and Gilead: sessions, transactions and caches

老子叫甜甜 提交于 2019-12-23 04:47:50
问题 I am writing a GWT application, using Hibernate at the server side. Right now, I am entirely confused about the correct way to transfer my objects to the client side of the GWT application in the least amount of code. I am using Gilead to avoid having to double the amount of classes in my domain model [1]. First off, my question is how I should be opening sessions and transactions. Initially, I did this on every RPC server call: // begin rpc call getCurrentSession beginTransaction // ...do

What jar-files needed for gilead with GWT?

耗尽温柔 提交于 2019-12-08 10:19:49
问题 I do not find a good tutorial on integrating gilead for GWT with hibernate. I miss the step what jar files to include in my application. Background: There is some example source code at: http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html to be found here, but I do not see that the same jars are used in the downloadable files from the gilead download location. 回答1: A little trial and error resembles that I need the following jars: From gilead: gilead-core-1.3.2.1839.jar

I am getting an error with a oneToMany association when using annotations with gilead for hibernate through gwt

孤者浪人 提交于 2019-12-04 22:29:48
问题 I'm using Gilead to persist my entities in my GWT project, im using hibernate annotations aswell. my problem is on my onetomany association.this is my User class that holds a reference to a list of FileLocations @Entity @Table(name = "yf_user_table") public class YFUser implements Serializable { @Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "user_id",nullable = false) private int userId; @Column(name = "username") private String username; @Column(name = "password")

LazyInitializationException when adding to a list that is held within a entity class using hibernate and gilead for gwt

大兔子大兔子 提交于 2019-12-02 13:51:32
问题 Right so i am working with hibernate gilead and gwt to persist my data on users and files of a website. my users have a list of file locations. i am using annotations to map my classes to the database. I am getting a org.hibernate.LazyInitializationException when i try to add file locations to the list that is held in the user class. this is a method below that is overridden from a external file upload servlet class that i am using. when the file uploads it calls this method. the user1 is

LazyInitializationException when adding to a list that is held within a entity class using hibernate and gilead for gwt

余生长醉 提交于 2019-12-02 02:49:04
Right so i am working with hibernate gilead and gwt to persist my data on users and files of a website. my users have a list of file locations. i am using annotations to map my classes to the database. I am getting a org.hibernate.LazyInitializationException when i try to add file locations to the list that is held in the user class. this is a method below that is overridden from a external file upload servlet class that i am using. when the file uploads it calls this method. the user1 is loaded from the database elsewhere. the exception occurs at user1.getFileLocations().add(fileLocation); .

Interfaces with hibernate annotations

随声附和 提交于 2019-12-01 03:58:41
问题 i am wondering how i would be able to annotate an interface @Entity @Table(name = "FOLDER_TABLE") public class Folder implements Serializable, Hierarchy { @Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "folder_id", updatable = false, nullable = false) private int fId; @Column(name = "folder_name") private String folderName; @OneToMany(cascade = CascadeType.ALL) @JoinTable(name = "FOLDER_JOIN_FILE_INFORMATION_TABLE", joinColumns = { @JoinColumn(name = "folder_id") },