[Hibernate] one - one relation problem

2003-11-03 Thread Nikolay Ganev
hi I use one to one relation in my project but I have the following problem: I made this relationship as is described and the constraint is created in the database. BUT when I want to get a reference to the other object it doesnt work!!! here is the schema: bean A --- bean B(one to one) A a =

[Hibernate] Session problem

2003-10-27 Thread Nikolay Ganev
hi guys, i have 2 q: 1. I can get and set Interceptor for Configuration(which is common for the sesion Factory). Now I need to get Interceptor for a session, but there is no method getInteresptor to get the Interceptor for a given Session! How can i get the Interceptor for a session? 2. I want t

[Hibernate] question

2003-10-23 Thread Nikolay Ganev
HI all, I need to add and retrieve object to/from Hibernate Session. In other words I need 2 methods in session: getObject() setObject(...) SessionImpl class is declared final, so i cannot extend it and make my own implementation of Session. Can anybody help me how to make this functionality? Thx