[Hibernate-JIRA] Closed: (HHH-1536) Replacing HibernateProxy witha custom proxy and using custom interceot methods
by Steve Ebersole (JIRA)
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1536?page=c... ]
Steve Ebersole closed HHH-1536.
-------------------------------
Closing stale resolved issues
> Replacing HibernateProxy witha custom proxy and using custom interceot methods
> -------------------------------------------------------------------------------
>
> Key: HHH-1536
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1536
> Project: Hibernate Core
> Issue Type: New Feature
> Reporter: geminygirl1
>
> I am really sorry to post this here. I am sure that user forums would have been a better place to post this. But I have been waiting for almost two weeks now and I am still not able to log on to teh user forums and since I am running out of time I am going ahead and posting it here.
> I just need some help to figure out how is it is at all possible, can I use a custom Proxy rather than HibernateProxy or may be use some callback to replace the proxy by my own proxy. My problem is that I need to generate some custom exceptions if a proxy is invoked outside the hibernate session.
> I understand I am new to Hibernate but beieve me I have gone through user forums and issue lists but I am not able to get any straightforward solution and also not able to get any detailed documentation. Like I know that in teh hbm file we have an attribute proxy but I am not really sure exactly what this would do or how it would impact teh working of Hibernate.
> I would appreciate if you could point me to some example or article... anything at all.
> I really do not want to traverse the whole object graph and replace the HibernateProxies with custom proxy. In short iw ant to avoid the extra object traversal.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 1 month
[Hibernate-JIRA] Closed: (HHH-1157) Performance problem StatelessSession and StatefulPersistenceContext.clear
by Steve Ebersole (JIRA)
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1157?page=c... ]
Steve Ebersole closed HHH-1157.
-------------------------------
Closing stale resolved issues
> Performance problem StatelessSession and StatefulPersistenceContext.clear
> -------------------------------------------------------------------------
>
> Key: HHH-1157
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1157
> Project: Hibernate Core
> Issue Type: Bug
> Components: core
> Affects Versions: 3.1 rc2
> Environment: win2k, db2
> Reporter: Barthel Steckemetz
>
> The StatelessSession in h3.1 is using the StatefulPersistenceContext,
> which has a lot of maps and sets to keep track of instances loaded etc.
> This is quite useful in the stateful Session, but yields to the following problems.
> When first loading a lot of instances like:
> Query queryA = session.createQuery("from A");
> List listA = queryA.list();
> The instances maps in StatefulPersistenceContext are cleared, i.e.
> HashMap.clear is used like:
> public void clear() {
> modCount++;
> Entry tab[] = table;
> for (int i = 0; i < tab.length; i++)
> tab[i] = null;
> size = 0;
> }
> Thus no references to the loaded instances are kept by the session.
> But the HashMap.table array has still the same (possibly large) size.
> Every subsequent load operation will call StatefulPersistenceContext.clear
> too. So that the loop in HashMap.clear is run again.
> This is especially costly when using ScrollableResults where
> this happens for every call of next.
> The solution may be to create a new instance of StatefulPersistenceContext
> instead of calling clear. This may have side effect if references to its
> members are kept elsewhere. We could fix our performance problems
> this way.
> A better solution could be to write an own StatelessPersistenceContext class.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 1 month
[Hibernate-JIRA] Closed: (HHH-1074) Compile time error for Chapter 1 reference example
by Steve Ebersole (JIRA)
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1074?page=c... ]
Steve Ebersole closed HHH-1074.
-------------------------------
Closing stale resolved issues
> Compile time error for Chapter 1 reference example
> --------------------------------------------------
>
> Key: HHH-1074
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1074
> Project: Hibernate Core
> Issue Type: Bug
> Components: documentation
> Affects Versions: 3.1 rc 1
> Environment: Hibernate 3.1 rc 1,SunJDK 1.4.2
> Reporter: Anto Paul
>
> The EventManager# createAndStoreEvent() of english single HTML page reference documentation(doc/reference/en/html/tutorial.html) is giving compile time error. The code given is
> private void createAndStoreEvent(String title, Date theDate) {
> HibernateUtil.getSessionFactory().getCurrentSession()
> .beginTransaction();
> Event theEvent = new Event();
> theEvent.setTitle(title);
> theEvent.setDate(theDate);
> HibernateUtil.getSessionFactory().getCurrentSession()
> .save(theEvent);
> HibernateUtil.getSessionFactory().getCurrentSession()
> .getTransaction.commit();
> }
> On compile it is saying
> ---------- Capture Output ----------
> > "C:\ant-1.6.2\bin\ant.bat" -f D:\work\hibernate-3.1\one\build.xml
> compile:
> [javac] Compiling 3 source files to D:\work\hibernate-3.1\one\bin
> [javac] D:\work\hibernate-3.1\one\src\EventManager.java:30: cannot resolve symbol
> [javac] symbol : variable getTransaction
> [javac] location: interface org.hibernate.classic.Session
> [javac] HibernateUtil.getSessionFactory().getCurrentSession()
> [javac] ^
> [javac] 1 error
> How to fix it. I am a newbie.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 1 month