-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: How to get control to PojoComponentTuplizer
PostPosted: Mon Mar 03, 2014 11:41 pm 
Newbie

Joined: Mon Mar 03, 2014 11:12 pm
Posts: 1
Hi,

In our project, we need to instantiate all JPA entities by Google Guice.
a) For the JPA entity object, we are implementing the instanstiate method of HibernateProxyInterceptor, to instantiate JPA entities.
b) But for the embedded object inside jpa entity, we don't know how to get control of instantiation.

For exmaple:
@Entity
public class A {

@Embedded
private B b;
}

We have researched out that the embedded object is instantiated by PojoComponentTuplizer which builds the Instantiator inside, and it can be extended and customized to do instantiation for embedded objects.

Even we create a customized PojoComponentTuplizer, but it's created by Hibernate, the Guice injector is unable to injected, unable to get injector to instantiate the embedded object.
Is any other way to get control of instantiate the embedded object?
Very appreciate your help!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.