-->
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: [Opinion request] Hibernate dynamically loaded entities
PostPosted: Fri Apr 08, 2016 1:59 pm 
Newbie

Joined: Fri Apr 08, 2016 1:48 pm
Posts: 1
Hello.

I would like to have a feature of dynamically loading entities when they are needed without rebuilding whole session factory (i.e. while keeping session open, add more entities (more classes, more hibernate xml mapping files).
Do you know of similar functionality exists?
I was looking to source code and was thinking to create pull request. Can you give some feedback whether dynamical loading is possible or what challenges I might encounter?

Problem I am trying to solve:
I have a big set of classes that are pretty heavy and I want to avoid initiating all of them, until the are really required. Solutions that I see:
1) Class lazy loading i.e. tell hibernate that there is class and mapping, but do not load and do not manipulate with bytecode, until it's really required.
2) Dynamically loading entities when I will tell hibernate to load components when they will be needed. Essentially that's item 1, but I have a control over loading.

Thank you for feedback and opinions.


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.