[Hibernate] build structure

2003-08-26 Thread Les Hazlewood
Gents (and Ladies?), I had my first experience with the full Hibernate build this morning, including the build of the HibernateExt and Tools modules. I thought things werewellyucky ;) I have a firm belief in leaving out jar files in a cvs repository, as that is not source code, and

[Hibernate] Caching of densly related data

2003-08-26 Thread Michał Mosiewicz
I've been trying to estimate how caching would influence the performance of my app. This app has a lot of parent-child relationships in different configurations, i.e. each object have childs in a bag, and mapped (two one-many relations). During the test I've added about 1000 objects randomly select

RE: [Hibernate] Postgres Text Type

2003-08-26 Thread Gavin King
Good point. anyway, you can always force a column type using the sql-type attribute. > I think the reason why is that Postgres does not limit the number of > characters in a VARCHAR field (like Oracle, who limits VARCHAR2 to 4000 > characters). Because Postgres doesn't limit VARCHAR, there is n

[Hibernate] Postgres Text Type

2003-08-26 Thread Frank Febbraro
I am using Hibernate 1.2.3 with Postgres 7.2.3. In the past when using Hibernate with MySql after a vertain size of String type the generated DDL would oncvert from VARCHAR to TEXT. However that is not the case with Postgres.. is there a reason why? An oversight? VARCHAR(45000) seems silly when P

RE: [Hibernate] Postgres Text Type

2003-08-26 Thread Les Hazlewood
Title: RE: [Hibernate] Postgres Text Type I think the reason why is that Postgres does not limit the number of characters in a VARCHAR field (like Oracle, who limits VARCHAR2 to 4000 characters).  Because Postgres doesn't limit VARCHAR, there is no way to tell what is a good limit to convert t

Re: [Hibernate] Postgres Text Type

2003-08-26 Thread Gavin King
Its just part of the Dialect. If you have suggestions for improvements to the Dialect, why not submit a patch to JIRA > I am using Hibernate 1.2.3 with Postgres 7.2.3. > > In the past when using Hibernate with MySql after a vertain size of String > type the generated DDL would oncvert from VARCHA

Re: [Hibernate] CGLib problem

2003-08-26 Thread Juozas Baliuka
jars from http://www.ibiblio.org/maven/cglib/jars/ are without dependancies, you need BCEL or ASM as dependancy . bcel 5.0 You can download cglib-asm-1.0.jar and use it in single jar too ( ASM is "faster" ). - Original Message - From: "Jim Downing" <[EMAI

[Hibernate] Multiple select satements insteag of one

2003-08-26 Thread Juan Carlos Flores Beltran
Hi, i am trying to fetch a lot of objects of class MEV. MEV has a one-to-many relationship to GA. This relationship is set to lazy=false. When i fetch the MEVs via Session.find("from Mev"); why are multiple select statements executed in order to fetch the ga objects? I would like to get the G

Re: [Hibernate] Bag example

2003-08-26 Thread Konstantin Priblouda
--- Prasad Iyer <[EMAIL PROTECTED]> wrote: > Hi > Does anyone have the example which uses bag in > mapping file. > > I am facing this problem with the query. > following is the code. Which always prints 0 for the > size but in table there are 10 messages > > Session session=factory.openSession()

[Hibernate] CGLib problem

2003-08-26 Thread Jim Downing
Hi, quick question - which version of cglib does hibernate-2.0-final.jar depend on? If anyone else is using maven for their builds, does either of the jars in http://www.ibiblio.org/maven/cglib/jars/ work with hibernate 2.0 final? cheers, jim --

[Hibernate] Re: API stability in SchemaUpdate

2003-08-26 Thread Laura Werner
Serge Knystautas wrote: The SchemaUpdate tool as is does not work in this environment. I need to SQL statements that Hibernate suggests could get the database to a stable environment. Maybe I'm missing something, but can't you just do something like this: java -cp... net.sf.hibernate.tool.

[Hibernate] Re: MapGenerator problem

2003-08-26 Thread Madhesh
Hi, The class was actually in the classpath. But, the Employee class is not in any package; it is just in the default package. Regards Madhesh <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > The class named "Employee" must be in the classpath. > > > Correct syntax is: > > java

Re: [Hibernate] Cascading inserts

2003-08-26 Thread Christian Bauer
On 25 Aug (20:41), Prasad Iyer wrote: > Which option of the cascade I have to use to insert a parent with a child. > I have tried "all" but gives me error. Read the "Parent/child" chapter in the reference documentation. Please stop asking beginner questions on the developer mailinglist. Read the

[Hibernate] Re: Patch: access via Field, not via Method if requested so

2003-08-26 Thread Laura Werner
Vladimir Dozen wrote: This is a great feature! One suggestion, though: public class FieldSuper implements ReflectHelper.AccessibleViaFieldsOnly { From a usage point of view, I think it would be a lot cleaner to put this option into the config file, e.g. FieldSuper.hbm.xml. Using a mar

[Hibernate] Re: [OS-webwork] Re: [Opensymphony-developers] A Proposal:Opensymphony Conductor

2003-08-26 Thread Mike Cannon-Brookes
Seraph (aka atlassian-security but less boringly named) is now up - http://opensource.atlassian.com/seraph Profiling is also up - http://opensource.atlassian.com/profiling I'll contact James about putting scheduler back into Quartz, it really should be there - it doesn't deserve it's own package.

[Hibernate] using alias with id column name that isn't primary key causes whereclauses to swap out to primary key name

2003-08-26 Thread Mark Proctor
I have opened the following jira: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-289 After re-reading the documentation I found "The special property (lowercase) id may be used to reference the unique identifier of an object. (You may also use its property name.)"

[Hibernate] Proxy equals() and hashCode() problem

2003-08-26 Thread Jeff Schnitzer
I just looked over the LazyInitializer code to manage equals() and hashCode() in a proxy and it seems like there's a problem. I'm trying to use an entity as a hash map key without requiring it to be initialized, and the code tries to handle this - except that this behavior is disabled if the entit

Re: [Hibernate] MS SQL performance and Unicode

2003-08-26 Thread Gary Evesson
Serge Knystautas wrote: Eric Pugh wrote: No, I can chime in, that I as well didn't know this. Out of curiosity, has anyone put together a unit test that I could run to demo the differences? Would this be something to add to hibernate, or is it too random? What kind of difference are you look

Re: [Hibernate] MS SQL performance and Unicode

2003-08-26 Thread Gary Evesson
Eric Pugh wrote: Also, I am working on this little issue, and I wanted to verify that the sendStringParametersAsUnicode=false string goes into the URL that you use to connect to the database, correct? jdbc:microsoft:sqlserver://[server]:1433;DatabaseName=[database name;SelectMethod=cursor;sendStri

[Hibernate] Hibernizing one-to-one relation and also querying

2003-08-26 Thread Madhesh
Hi, I have two tables with a one to one relation. What is the best way to hibernize them. I also need the ability to retrieve data (from both tables) based on a search criteria on either of the tables. Do i need to explicity mention a HQL Join query in my code? Since i am a hibernate newbie,

[Hibernate] (no subject)

2003-08-26 Thread Daniel Leuck
Hello folks, We are looking for someone to assist us in evaluating the suitability of Hibernate as the persistence layer for our systems. The contractor can work from home.  Its probably a week of work and pays $2000 USD. If you or anyone you know with hibernate experience is interested pl

[Hibernate] HibernateExceptions...

2003-08-26 Thread Graeme Knight
Hi. Session.load() throws a HibernateException. Is there an easy way to tell what context this exception is thrown in. For example, perhaps an object with the same id is being loaded twice, or perhaps the database is down. I would like to be able to differentiate between possible problems. Man

[Hibernate] Cascading inserts

2003-08-26 Thread Prasad Iyer
Hi, Which option of the cascade I have to use to insert a parent with a child. I have tried "all" but gives me error.   regards prasad chandrasekaran

RE: [Hibernate] Lazy Loading, upwards?

2003-08-26 Thread Schnitzer, Jeff
Do you have a proxy defined for the parent object? Jeff Schnitzer [EMAIL PROTECTED] > -Original Message- > From: Graeme Knight [mailto:[EMAIL PROTECTED] > Sent: Monday, August 25, 2003 11:42 AM > To: [EMAIL PROTECTED] > Subject: [Hibernate] Lazy Loading, upwards? > > Hello. > > I have c

[Hibernate] RE: A Proposal: Opensymphony Conductor

2003-08-26 Thread Jason Carreira
Well, it's been over a week, but the Conductor project at java.net has finally been approved! See below for my original message. The project page is now available at https://conductor.dev.java.net/ Discussions are welcome on the dev mailing list there ([EMAIL PROTECTED]) and hopefully we'll be