Questions tagged [gilead]

Gilead was previously known as hibernate4gwt : the library has been renamed to reflect a more general purpose than just these two target frameworks, but of course, it still supports them.

Gilead permits you to use your Persistent POJO (and especially the partially loaded ones) outside the JVM (GWT, Flex, XML, Google AppEngine...) without pain. No LazyInitialisationException. No DTO mapping. Just POJO and Domain Driven Design.

Features

  • Seamless clone and merge:
    Persistent entity can be cloned to be sent outside the JVM without pain and exceptions. They can also be merged when back on the server, so the merged instance can be reused as a classical detached entity. enter image description here

  • RIA frameworks integration:
    Gilead provides adapters for seamless integration with GWT (from 1.5 to 2.0) and Flex/BlazeDS frameworks.

Useful links:

40 questions
1
vote
1 answer

Passing (Smart) GWT Overlay Types From Client To Server & Use Of Hibernate Persistence

Our project makes use of gilead to pass model objects to the client side using the GWT RPC model. The problem we face is that serializing to and from JSON on the client side for procesing is becoming more of an issue as our model grows / changes. I…
Andy
  • 13
  • 2
1
vote
1 answer

Is it possible to programmatically change GWT RPC servlet path?

My GWT app works fine when run from http://localhost:8080/myapp. I need to host the gwt app behind what is essentially a proxy. When behind the proxy, the url changes to something like http://localhost:8080/foo/bar/00_00_00/myapp. Gwt is throwing…
Upgradingdave
  • 12,916
  • 10
  • 62
  • 72
1
vote
1 answer

GWT - configuring Gilead problem

I followed this tutorial and decided to use Gilead to avoid writing DTO boilerplate. But with no success yet. I did as tutorial advices: Made my POJO on server side extend net.sf.gilead.pojo.java5.LightEntity public class Attachment extends…
Xorty
  • 18,367
  • 27
  • 104
  • 155
1
vote
1 answer

Hibernate, Gilead and GWT

I'm experiencing some problems with GWT and Gilead/Hibernate I did my code according to the tutorial but it fails with com.google.gwt.user.client.rpc.SerializationException: Type 'ru.atamur.entity.UserEntity_gilead_15' was not included in the set…
atamur
  • 1,567
  • 1
  • 14
  • 25
1
vote
1 answer

org.hibernate.NonUniqueObjectException Within GWT application using hibernate through gilead

I am working on a project for college that uses GWT, Hibernate and Gilead. Basically for the moment users should be able to add friends and remove them. Also, a user can see if his or her friends are online or not. My trouble is that when I add a…
molleman
  • 2,934
  • 16
  • 61
  • 92
1
vote
1 answer

@OneToMany property null in Entity after (second) merge

I'm using JPA (with Hibernate) and Gilead in a GWT project. On the server side I have this method and I'm calling this method twice with the same "campaign". On the second call it throws a null pointer exception in line 4…
iNPUTmice
  • 137
  • 2
  • 9
1
vote
0 answers

SecurityException thrown when using Gilead and Hibernate Envers

I'm trying to audit an Object that contains a HashMap. The HashMap property is @Transient as and I've tried adding @NotAudited to it, but when I try to get a list of the Objects it throws the following error: SEVERE: Exception while dispatching…
marktucks
  • 1,771
  • 1
  • 16
  • 21
1
vote
2 answers

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

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…
Jerome Cance
  • 8,103
  • 12
  • 53
  • 106
0
votes
1 answer

Gilead and RequestFactory alternatives

I began to develop a fairly large GWT-project, which naturally have a data model. And I want to comfortably work with entity-classes on client side. I really liked Gilead, but this thread is not good news for me. I do not want to use RequestFactory,…
Sergey Vedernikov
  • 7,609
  • 2
  • 25
  • 27
0
votes
1 answer

How do I change the logging level for Gilead?

I'm getting a lot of records written to the log like this: Jan 08, 2020 1:27:48 PM net.sf.gilead.core.PersistentBeanManager clonePojo INFO: Third party instance, not cloned I'd like to stop them. I'm assuming that if I were to change the logging…
Henry
  • 600
  • 2
  • 7
  • 22
0
votes
1 answer

Relationships being deleted on associated objects in Hibernate+Gilead application

Edit 5/11/2011: I guess it's a bit worse than what's below; in my deployed QA instance, if I just refresh the main dashboard a number of times, eventually my user's many-to-many group associations are deleted. At this point, there are only select…
CyDharttha
  • 59
  • 7
0
votes
1 answer

GWT Gilead error

Well i have done all the setup for Gilead, although i get this error: [WARN] Exception while dispatching incoming RPC call java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Enhancer at …
kostas trichas
  • 2,923
  • 7
  • 28
  • 37
0
votes
2 answers

HibernateUtil with JPA

I can't figure out what HibernateUtil is ... Is it required with JPA? I use JPA with GWT , is this implementation sufficient? import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; public final class EMF { private…
kostas trichas
  • 2,923
  • 7
  • 28
  • 37
0
votes
1 answer

GWT Gilead (JPA configuration)

From the Gilead official site: Note that you still have to properly initialize PersistentBeanManager with associated PersistenceUtil, proxy store and possibly class mapper. This must be done before any remote call, in Remote Service…
kostas trichas
  • 2,923
  • 7
  • 28
  • 37
0
votes
1 answer

How to setup multiple database connections in gilead, GWT and Hiberante?

How could I connect to multiple databases in GWT and Gilead ? I have successfully implemented this for one database as follows: HibernateUtil hibernateUtil = new…
Feras Odeh
  • 9,136
  • 20
  • 77
  • 121