Re: [Hibernate] Question:

2005-01-30 Thread Max Rydahl Andersen
On Mon, 31 Jan 2005 01:55:34 +1100, Gavin King <[EMAIL PROTECTED]> wrote: Should it be org.hibernate.criteria instead of org.hibernate.criterion? Does anyone have a really strong preference? not me. Both works for me. btw. i like the separation into Projections, Restrictions, etc. much better tha

[Hibernate] Question:

2005-01-30 Thread Gavin King
Should it be org.hibernate.criteria instead of org.hibernate.criterion? Does anyone have a really strong preference? -- Gavin King +61 410 534 454 +1 404 822 8349 callto://gavinking Hibernate [EMAIL PROTECTED] http://hibernate.org JBoss Inc [EMAIL PROTECTED] http://jboss.com --

Re: [Hibernate] Question abaout multiple tables

2004-09-21 Thread Christian Bauer
On Sep 21, 2004, at 6:30 PM, Jessica Morales wrote: I got information of hibernate-relationships but in my case, the relationship are very complex. Do you know if is posible get information from some tables, with a query like that: This is the developer mailing list, please use the user forum. -- C

[Hibernate] Question abaout multiple tables

2004-09-21 Thread Jessica Morales
Hi, I got information of hibernate-relationships but in my case, the relationship are very complex. Do you know if is posible get information from some tables, with a query like that: select Mch.MultiChannelHierDes, Mch.MultiChannelHierID from Business.Users Usr Inner Join Business.ChannelXCusto

Re: [Hibernate] Question about caching

2004-09-15 Thread Gavin King
ReadWriteCache does stuff to preserve txn isolation. Things remain "locked" for a bit longer than you might expect. You need to do the lookup in a second txn, that starts unambiguously *after* the updating txn ends. Michał Mosiewicz wrote: I've been testing cache. I've noticed there is much les

[Hibernate] Question about caching

2004-09-15 Thread Michał Mosiewicz
I've been testing cache. I've noticed there is much less cache hits that I supposed it should be. Then I discovered the following behaviour: DEBUG [Thread-0] (ReadWriteCache.java:68) - Cache lookup: 40201 DEBUG [Thread-0] (ReadWriteCache.java:78) - Cache hit: 40201 DEBUG [Thread-0] (ReadWriteCache

Re: [Hibernate] Question about your Wiki implementation

2003-12-04 Thread Christian Bauer
On 04 Dec (11:22), Miller Charles - Nashville wrote: > I see that you are using coWiki. Which version are you using? I am looking > to install one for an internal developer community where I work. Must be 0.3.1 or something like that. I would recommend the latest version declared as "working" o

[Hibernate] Question about your Wiki implementation

2003-12-04 Thread Miller Charles - Nashville
Hello, I see that you are using coWiki. Which version are you using? I am looking to install one for an internal developer community where I work. Thanks. Charles Miller --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an e

Re: [Hibernate] question

2003-10-25 Thread Christian Bauer
On 23 Oct (12:44), Nikolay Ganev wrote: > I need to add and retrieve object to/from Hibernate Session. In other words I need 2 > methods in session: > getObject() > setObject(...) Why?! -- Christian Bauer [EMAIL PROTECTED] --- This SF.net em

Re: [Hibernate] question

2003-10-23 Thread Max Rydahl Andersen
eh ? what object does getObject() return ? What are the parameters of setObject(...) ? What is the use of this thing? /max Nikolay Ganev wrote: 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

RE: [Hibernate] question

2003-10-23 Thread Urberg, John
rk is SessionImpl.addUninitializedEntity(). Maybe someone could verify if this is a safe way to add an object to the Session cache? Regards, John -Original Message- From: Nikolay Ganev [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 5:45 AM To: hibernate Subject: [Hibe

[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

RE: [Hibernate] Question on Session.connection

2003-09-10 Thread Chandrasekhar Ambadipudi
Thanks, it worked. -Original Message- From: Gavin King [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 10, 2003 11:21 AM To: Chandrasekhar Ambadipudi Cc: '[EMAIL PROTECTED]' Subject: Re: [Hibernate] Question on Session.connection Just call sess.flush() ... you can call

Re: [Hibernate] Question on Session.connection

2003-09-10 Thread Gavin King
Just call sess.flush() ... you can call it at any time :) Chandrasekhar Ambadipudi wrote: I have a transaction like this Transaction tx = sess.beginTransaction(); sess.save(obj) sess.connection() // and one prepared statm

[Hibernate] Question on Session.connection

2003-09-10 Thread Chandrasekhar Ambadipudi
I have a transaction like this Transaction tx = sess.beginTransaction(); sess.save(obj) sess.connection() // and one prepared statment execution here sess.update(obj1) tx.comm

[Hibernate] Question about best practices on creating hibernate session

2003-08-14 Thread Vivian Fonger
Title: Message Hi everyone,   Can someone explain to me what does it mean by "Never create more than one concurrent Session or Transaction instance per database connection" which is mentioned in Section 13.2 - Threads and Connection under Hibernate2 Reference Documentation???  Does this sta

Re: [Hibernate] Question about best practices on creating hibernate session

2003-08-14 Thread Christian Bauer
On 11 Aug (17:20), Vivian Fonger wrote: > Can someone explain to me what does it mean by "Never create more than > one concurrent Session or Transaction instance per database connection" > which is mentioned in Section 13.2 - Threads and Connection under > Hibernate2 Reference Documentation??? Do

Re: [Hibernate] question about dialects..

2003-02-07 Thread Gavin . King
To: <[EMAIL PROTECTED]> Sent by:cc: [EMAIL PROTECTED] Subject: [Hib

[Hibernate] question about dialects..

2003-02-05 Thread Max Rydahl Andersen
While loading hibernate2 into a clean eclipse workspace I spotted that all dialects implement an deprecated method in Dialect: /** * The syntax used to add a column to a table. * @deprecated not supported on many platforms * @return String */ public abstract String getAddColumnString(); W

Re: [Hibernate] question on H2 roadmap progress

2003-01-10 Thread Gavin . King
I committed this to the Hibernate2 module last night, in fact. I have added an interface called Configurable to the id package. Check that out to see how it works. Hibernate2 will always use default constructors to instantiate id generators. ==

[Hibernate] question on H2 roadmap progress

2003-01-09 Thread Russell Smyth
I am looking to create a custom id generator for my project and noticed several planned "enhancements" for H2 in the id generator area. Two are specific generator cases, so I am not concerned with them. What I would like to know is how far has the planning gone for * named id generator parameters

Re: [Hibernate] Question about query language

2002-11-21 Thread Brad Clow
inthe following sql statement:select t.* from table tbrad- Original Message -From: "Donnerstag, Juergen" <[EMAIL PROTECTED]>To: <[EMAIL PROTECTED]>Sent: Wednesday, November 20, 2002 8:49 PMSubject: [Hibernate] Question about query language>> Would somebody please expla

Re: [Hibernate] Question about query language

2002-11-20 Thread Christoph Sturm
Hi Jürgen! - Original Message - From: "Donnerstag, Juergen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 20, 2002 11:49 AM Subject: [Hibernate] Question about query language > > Would somebody please explain to me why it is necessar

[Hibernate] Question about query language

2002-11-20 Thread Donnerstag, Juergen
Would somebody please explain to me why it is necessary to define the table name as part of the from clause, e.g. "from MYTABLE in class eg.MyTable". The relation between table name and java class name is already defined within the XML mapping. "from MYTABLE" or "from in class eg.MyTable" should b

Re: [Hibernate] Question about onUpdate

2002-09-11 Thread Gavin King
> It appears to me that the onUpdate() method is not getting called when it should. onUpdate() gets called only when you explicitly pass a transient object to Session.update(). ie. its called when a transient object becomes "sessional". Its not called when an dirty object is UPDATEd on the databas

[Hibernate] Question about onUpdate

2002-09-11 Thread Jon Lipsky
Hi Gavin (and all the rest),   It appears to me that the onUpdate() method is not getting called when it should.  I have an object then implements the Lifecycle interface, and I have run a simple test with it where I create an object, load an object, update an object, and delete an object.  J