[Hibernate] CVS problem

2004-02-17 Thread snpe
Hello,
  I try hibernate from CVS  and have a problem with branches
HEAD - is version 2.0 - ok
v21branch - is version 2.1.3 - ok
v22branch - version 2.1.2 - ???
what is a problem and how checkout version 2.2

regards
Haris Peco


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] CVS problem

2004-02-17 Thread snpe
I check out (update) v22branch
cvs up -r v22branch -dPC
and get version 2.1.1
I want see v 2.2 from cvs

Thanks
Haris Peco
On Tuesday 17 February 2004 01:33 pm, Ebersole, Steve wrote:
> v22branch is the current work for the 2.2 release, not 2.1.2.
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of snpe
> Sent: Tuesday, February 17, 2004 8:35 AM
> To: [EMAIL PROTECTED]
> Subject: [Hibernate] CVS problem
> 
> 
> Hello,
>   I try hibernate from CVS  and have a problem with branches
> HEAD - is version 2.0 - ok
> v21branch - is version 2.1.3 - ok
> v22branch - version 2.1.2 - ???
> what is a problem and how checkout version 2.2
> 
> regards
> Haris Peco
> 
> 
> ---
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> ___
> hibernate-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
> 


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] CVS problem

2004-02-17 Thread snpe
I checkout v22branch and I get v 2.1.1 - I want  v 2.2

regards
On Tuesday 17 February 2004 01:47 pm, Ebersole, Steve wrote:
> What makes you think its the 2.1.1 version?
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of snpe
> Sent: Tuesday, February 17, 2004 8:51 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [Hibernate] CVS problem
> 
> 
> I check out (update) v22branch
> cvs up -r v22branch -dPC
> and get version 2.1.1
> I want see v 2.2 from cvs
> 
> Thanks
> Haris Peco
> On Tuesday 17 February 2004 01:33 pm, Ebersole, Steve wrote:
> > v22branch is the current work for the 2.2 release, not 2.1.2.
> > 
> > 
> > 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of snpe
> > Sent: Tuesday, February 17, 2004 8:35 AM
> > To: [EMAIL PROTECTED]
> > Subject: [Hibernate] CVS problem
> > 
> > 
> > Hello,
> >   I try hibernate from CVS  and have a problem with branches
> > HEAD - is version 2.0 - ok
> > v21branch - is version 2.1.3 - ok
> > v22branch - version 2.1.2 - ???
> > what is a problem and how checkout version 2.2
> > 
> > regards
> > Haris Peco
> > 
> > 
> > ---
> > SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> > Build and deploy apps & Web services for Linux with
> > a free DVD software kit from IBM. Click Now!
> > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> > ___
> > hibernate-devel mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/hibernate-devel
> > 
> 
> 
> ---
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> ___
> hibernate-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
> 


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] CVS problem

2004-02-17 Thread snpe
I 'm sorry - I do next :
checkout v21branch and make v2.1.3 - it is fine
I upgrade v21branch in v22branch with
cvs up -r v22branch -dPC
and I get v2.1.1 release

Thanks
On Tuesday 17 February 2004 02:56 pm, snpe wrote:
> I checkout v22branch and I get v 2.1.1 - I want  v 2.2
> 
> regards
> On Tuesday 17 February 2004 01:47 pm, Ebersole, Steve wrote:
> > What makes you think its the 2.1.1 version?
> > 
> > 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of snpe
> > Sent: Tuesday, February 17, 2004 8:51 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [Hibernate] CVS problem
> > 
> > 
> > I check out (update) v22branch
> > cvs up -r v22branch -dPC
> > and get version 2.1.1
> > I want see v 2.2 from cvs
> > 
> > Thanks
> > Haris Peco
> > On Tuesday 17 February 2004 01:33 pm, Ebersole, Steve wrote:
> > > v22branch is the current work for the 2.2 release, not 2.1.2.
> > > 
> > > 
> > > 
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] Behalf Of snpe
> > > Sent: Tuesday, February 17, 2004 8:35 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: [Hibernate] CVS problem
> > > 
> > > 
> > > Hello,
> > >   I try hibernate from CVS  and have a problem with branches
> > > HEAD - is version 2.0 - ok
> > > v21branch - is version 2.1.3 - ok
> > > v22branch - version 2.1.2 - ???
> > > what is a problem and how checkout version 2.2
> > > 
> > > regards
> > > Haris Peco
> > > 
> > > 
> > > ---
> > > SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> > > Build and deploy apps & Web services for Linux with
> > > a free DVD software kit from IBM. Click Now!
> > > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> > > ___
> > > hibernate-devel mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/hibernate-devel
> > > 
> > 
> > 
> > ---
> > SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> > Build and deploy apps & Web services for Linux with
> > a free DVD software kit from IBM. Click Now!
> > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> > ___
> > hibernate-devel mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/hibernate-devel
> > 
> 
> 
> ---
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> ___
> hibernate-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
> 


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] CVS problem

2004-02-17 Thread snpe
I make hibernate with v22branch and create dir hibernate-2.1, readme tell me that is 
ver. 2.1.1 etc, but this is contnets of
sf/net/hibernate/impl

AbstractCommand.java
AbstractDeleteCommand.java
AbstractLoadCommand.java
AbstractQueryImpl.java
AbstractSaveCommand.java
AbstractVisitor.java
BatcherImpl.java
BatchingBatcher.java
CacheEntry.java
CopyCommand.java
CriteriaImpl.java
CVS
DeleteCommand.java
DeleteMultiCommand.java
DirtyCollectionSearchVisitor.java
EvictVisitor.java
FilterImpl.java
FlushVisitor.java
IteratorImpl.java
LoadCommand.java
MessageHelper.java
NonBatchingBatcher.java
OnLockVisitor.java
OnReplicateVisitor.java
OnUpdateVisitor.java
Printer.java
ProxyVisitor.java
QueryImpl.java
ReattachVisitor.java
ReplicateCommand.java
SaveCommand.java
ScheduledCollectionAction.java
ScheduledCollectionRecreate.java
ScheduledCollectionRemove.java
ScheduledCollectionUpdate.java
ScheduledDeletion.java
ScheduledEntityAction.java
ScheduledInsertion.java
ScheduledUpdate.java
ScrollableResultsImpl.java
SessionFactoryImpl.java
SessionFactoryObjectFactory.java
SessionImpl.java
SQLQueryImpl.java
UpdateCommand.java
WrapVisitor.java

On Tuesday 17 February 2004 02:00 pm, Ebersole, Steve wrote:
> Again, what makes you think that what you update from CVS is the 2.1.1 version and 
> not the 2.2 version?
> 
> If you go to the net.sf.hibernate.impl package, do you see a bunch of abstract 
> command classes?  If so you have version 2.2...
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of snpe
> Sent: Tuesday, February 17, 2004 9:04 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [Hibernate] CVS problem
> 
> 
> I 'm sorry - I do next :
> checkout v21branch and make v2.1.3 - it is fine
> I upgrade v21branch in v22branch with
> cvs up -r v22branch -dPC
> and I get v2.1.1 release
> 
> Thanks
> On Tuesday 17 February 2004 02:56 pm, snpe wrote:
> > I checkout v22branch and I get v 2.1.1 - I want  v 2.2
> > 
> > regards
> > On Tuesday 17 February 2004 01:47 pm, Ebersole, Steve wrote:
> > > What makes you think its the 2.1.1 version?
> > > 
> > > 
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] Behalf Of snpe
> > > Sent: Tuesday, February 17, 2004 8:51 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [Hibernate] CVS problem
> > > 
> > > 
> > > I check out (update) v22branch
> > > cvs up -r v22branch -dPC
> > > and get version 2.1.1
> > > I want see v 2.2 from cvs
> > > 
> > > Thanks
> > > Haris Peco
> > > On Tuesday 17 February 2004 01:33 pm, Ebersole, Steve wrote:
> > > > v22branch is the current work for the 2.2 release, not 2.1.2.
> > > > 
> > > > 
> > > > 
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED] Behalf Of snpe
> > > > Sent: Tuesday, February 17, 2004 8:35 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [Hibernate] CVS problem
> > > > 
> > > > 
> > > > Hello,
> > > >   I try hibernate from CVS  and have a problem with branches
> > > > HEAD - is version 2.0 - ok
> > > > v21branch - is version 2.1.3 - ok
> > > > v22branch - version 2.1.2 - ???
> > > > what is a problem and how checkout version 2.2
> > > > 
> > > > regards
> > > > Haris Peco
> > > > 
> > > > 
> > > > ---
> > > > SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> > > > Build and deploy apps & Web services for Linux with
> > > > a free DVD software kit from IBM. Click Now!
> > > > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> > > > ___
> > > > hibernate-devel mailing list
> > > > [EMAIL PROTECTED]
> > > > https://lists.sourceforge.net/lists/listinfo/hibernate-devel
> > > > 
> > > 
> > > 
> > > ---
> > > SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> > > Build and deploy apps & Web services for Linux with
> > > a free DVD software kit from IBM. Click Now!
> > > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> > > ___
> > > hibernate-devel mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/li

Re: [Hibernate] CVS problem

2004-02-17 Thread snpe
Fine.It is 2.2 alpha
Please change readme and build.xml in source

Thanks
On Tuesday 17 February 2004 02:32 pm, Emmanuel Bernard wrote:
> Check n.s.h.cfg.Environment class, you'll find the appropriate version.
> 
> 
> ---
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> ___
> hibernate-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
> 


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] Hibernate and smart search

2004-04-29 Thread snpe
Hello
I have bean with table propeties (web or swing form field) and I want 
next seach :

- if property is null no seach for this property
- if property is not null create query for value of property (where clause in table)
- if value property btw 'TH%' or 'TH_' (value with character %, _ ..) then use LIKE 
clause
- if value is '>xxx' query is "where prop > 'xxx' " 
etc

I want search like 
 List list = dao.search(BeanClass.class)

I can make query for any class easy, but I want this for every class

My goal is that user populate bean and with search button find rows with populated 
field

Is it possible ?

regards


---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id66&op=click
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] Re: Hibernate and smart search

2004-04-30 Thread snpe
You don't understand me ( probably)
I don't want set criteria for every class - I want features btw search, like load, 
find, save etc
session.search(PermanentClass.class,BeanClass.class)
for any PermanentClass and any BeanClass
method search find properties in BeanClass like properties in PermanentClass and 
automatic make query 

regards

p.s.
this is question for hiberante list, sorry for mistake
On Friday 30 April 2004 11:42 am, Nicolas de Amorrortu wrote:
> Take a look to the Criterion Object at Hibernate 
> (http://www.hibernate.org/hib_docs/reference/en/html_single/#querycriter
> ia).
> You can implement something like a "Chain of Responsiblity" where each
> Handler is an adaptor to a Criterion (using Expression). You can define
> one Adaptor for each Expression, so then you can externalize (¿?) your
> criteria definition to an XML File.
> 
> saludos,
> Nicolás
> 
> -Original Message-
> From: snpe [mailto:[EMAIL PROTECTED] 
> Sent: Viernes, 30 de Abril de 2004 02:19 a.m.
> To: 'Struts Users Mailing List'
> Subject: Hibernate and smart search
> 
> 
> Hello
>   I have bean with table propeties (web or swing form field) and I
> want next seach :
> 
> - if property is null no seach for this property
> - if property is not null create query for value of property (where
> clause in table)
> - if value property btw 'TH%' or 'TH_' (value with character %, _ ..)
> then use LIKE clause
> - if value is '>xxx' query is "where prop > 'xxx' " 
> etc
> 
> I want search like 
>   List list = dao.search(BeanClass.class)
> 
> I can make query for any class easy, but I want this for every class
> 
> My goal is that user populate bean and with search button find rows with
> populated field
> 
> Is it possible ?
> 
> regards
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> NOTA DE CONFIDENCIALIDAD
> Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a las 
> personas direccionadas en el mail y puede contener informacion (i)de propiedad 
> exclusiva de Interbanking S.A. o (ii) amparada por el secreto profesional. Cualquier 
> opinion en el contenido, es exclusiva de su autor y no representa necesariamente la 
> opinion de Interbanking S.A. El acceso no autorizado, uso, reproduccion, o 
> divulgacion esta prohibido. Interbanking S.A no asumira responsabilidad ni 
> obligacion legal alguna por cualquier informacion incorrecta o alterada contenida en 
> este mensaje. Si usted ha recibido este mensaje por error, le rogamos tenga la 
> amabilidad de destruirlo inmediatamente junto con todas las copias del mismo, 
> notificando al remitente. No debera utilizar, revelar, distribuir, imprimir o copiar 
> este mensaje ni ninguna de sus partes si usted no es el destinatario. Muchas gracias.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id66&op=click
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] done...

2004-12-09 Thread snpe
Max
  Where are requeired libraries - special jboss ide ?

Thanks
On Thursday 09 December 2004 02:17 pm, Max Rydahl Andersen wrote:
> ...but don't expect to just build it out of the box - will post build  
> instructions when time allows it.
> 
> Gavin: you will get a prebuilt version before thursday :)
> 
> cheers
> 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] trivial error in build.xml (hibernate 3)

2004-12-14 Thread snpe
in lib exist ant-antlr-1.6.2.jar, but in build.xml ant-antlr-1.6.1.jar

regards
peco


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] trivial error in build.xml (hibernate 3)

2004-12-16 Thread snpe
I have 3.0 dtds - I downlaod xerces source 2.4.0 from apache, compile and it 
work
it work with jdk 1.4 without xerces , too.It doesnt' work only with your xerces
It isn't important for me anymore - i remove xerces from required libraries, 
but it confuse users

regards
On Wednesday 15 December 2004 09:31 pm, Emmanuel Bernard wrote:
> We won't remove the parser since we want to stay compatible with the JDK 1.3
> It works fine for me (don't access the web). Are you sure you use 
> http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd and not 
> http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in your mappings.
> The DTDEntityResolver try to search in org/hibernate before the web when 
> an url starting with http://hibernate.sourceforge.net/ is found.
> 
> snpe wrote:
> 
> >Emmanuel,
> >  There is yet another problem - in hibernate3 (maybe and 2) tree exists 
> > xerces-2.4.0.jar
> >This jar is buggy - try connect to internet for every parsing - it is enough 
> >that remove it because
> >java 1.4  have necessary libraries for parsing.I don't know waht is with 
> >this library
> >I download an compile xerces 2.4 and it work correct
> >
> >regards
> >On Wednesday 15 December 2004 07:49 am, Emmanuel Bernard wrote:
> >  
> >
> >>fixed, thanks
> >>
> >>snpe wrote:
> >>
> >>
> >>
> >>>in lib exist ant-antlr-1.6.2.jar, but in build.xml ant-antlr-1.6.1.jar
> >>>
> >>>regards
> >>>peco
> >>>
> >>>
> >>>---
> >>>SF email is sponsored by - The IT Product Guide
> >>>Read honest & candid reviews on hundreds of IT Products from real users.
> >>>Discover which products truly live up to the hype. Start reading now. 
> >>>http://productguide.itmanagersjournal.com/
> >>>___
> >>>hibernate-devel mailing list
> >>>[EMAIL PROTECTED]
> >>>https://lists.sourceforge.net/lists/listinfo/hibernate-devel
> >>>
> >>> 
> >>>
> >>>  
> >>>
> >
> >  
> >
> 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] hql problem - group by with many-to-one

2004-12-16 Thread snpe
Hello,
I have problem with hql .

  class A is master and have many-to-one class B (foreign key relation)
when I do hql with aggregate function and i group-list have only one column 
from class B it work,
but when I have identifier (composite primary key) and yet anotehr column it 
don't work

example :
   class A :  table A
  id - identifiercolumn a 
  b   - many-to-one to b column b
  value - number property column value

   class B - table B

 id  - identifier  column id
 name  -  column name
 description - column description

this like :
  select a.id,a.b.id,sum(a.value)
  from A as a
  group by a.id,b.id

this work too
  select a.b.name,a.b.description,sum(a.value)
  from A as a
  group by a.b.name,a.b.description

but this don't work
  select a.b.id,a.b.name,sum(a.value)
  from A as a
  group by a.b.id,a.b.name

hql in last query in select list (group by columns) get a.b.id from table a 
(for example select a.b)
and in group by list from table b and I have sql like :

select A.B,b.name,sum(a.value)
from a,b
where a.b=b.id
group by B.ID,b.name

database return error no GROUP BY column

It work same in hibernate 2 and hibernate 3 - it isn't important database - 
every database dont' work with this sql

regards
Haris Peco
   

 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] hql problem - group by with many-to-one

2004-12-17 Thread snpe
Hello,
  I do it.Please see : 
http://forum.hibernate.org/viewtopic.php?p=2225061#2225061

Thanks
On Friday 17 December 2004 10:00 am, Christian Bauer wrote:
> 
> On Dec 15, 2004, at 10:27 PM, snpe wrote:
> 
> > I have problem with hql .
> 
> Use the user forum.
> 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] done...

2004-12-11 Thread snpe
Max,
  I find it and compile plugin in eclipse - I have working eclipse environment 
with hibernate, but
I can't set configuration in tools plugin - I get hibernate perspective , add 
configuration
What I need set except hibernate.cfg.xml - what is in classpath ?

Thanks
Haris Peco
On Saturday 11 December 2004 04:29 pm, Max Rydahl Andersen wrote:
> On Thu, 9 Dec 2004 18:58:15 +0000, snpe <[EMAIL PROTECTED]> wrote:
> 
> > Max
> >   Where are requeired libraries - special jboss ide ?
> 
> in jboss ide cvs.
> 
> -max
> 
> >
> > Thanks
> > On Thursday 09 December 2004 02:17 pm, Max Rydahl Andersen wrote:
> >> ...but don't expect to just build it out of the box - will post build
> >> instructions when time allows it.
> >>
> >> Gavin: you will get a prebuilt version before thursday :)
> >>
> >> cheers
> >>
> 
> 
> 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] trivial error in build.xml (hibernate 3)

2004-12-15 Thread snpe
I load all h3 tree and make eclipse project (and tools eclipse console plugin)
when I start build SessionFactory (with christian caveatemptor HibernateUtil or 
from 
hibernate tools plugin) I get network exception
I remove xerces and mxl-apis (or set my compiled form source) and it work

regards
On Wednesday 15 December 2004 10:20 pm, Emmanuel Bernard wrote:
> I mean i *does* work fine for me with the default lib (I've pluged out 
> my network!). What is the exact problem you face.
> 
> snpe wrote:
> 
> >I have 3.0 dtds - I downlaod xerces source 2.4.0 from apache, compile and it 
> >work
> >it work with jdk 1.4 without xerces , too.It doesnt' work only with your 
> >xerces
> >It isn't important for me anymore - i remove xerces from required libraries, 
> >but it confuse users
> >
> >regards
> >On Wednesday 15 December 2004 09:31 pm, Emmanuel Bernard wrote:
> >  
> >
> >>We won't remove the parser since we want to stay compatible with the JDK 1.3
> >>It works fine for me (don't access the web). Are you sure you use 
> >>http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd and not 
> >>http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in your mappings.
> >>The DTDEntityResolver try to search in org/hibernate before the web when 
> >>an url starting with http://hibernate.sourceforge.net/ is found.
> >>
> >>snpe wrote:
> >>
> >>
> >>
> >>>Emmanuel,
> >>> There is yet another problem - in hibernate3 (maybe and 2) tree exists 
> >>> xerces-2.4.0.jar
> >>>This jar is buggy - try connect to internet for every parsing - it is 
> >>>enough that remove it because
> >>>java 1.4  have necessary libraries for parsing.I don't know waht is with 
> >>>this library
> >>>I download an compile xerces 2.4 and it work correct
> >>>
> >>>regards
> >>>On Wednesday 15 December 2004 07:49 am, Emmanuel Bernard wrote:
> >>> 
> >>>
> >>>  
> >>>
> >>>>fixed, thanks
> >>>>
> >>>>snpe wrote:
> >>>>
> >>>>   
> >>>>
> >>>>
> >>>>
> >>>>>in lib exist ant-antlr-1.6.2.jar, but in build.xml ant-antlr-1.6.1.jar
> >>>>>
> >>>>>regards
> >>>>>peco
> >>>>>
> >>>>>
> >>>>>---
> >>>>>SF email is sponsored by - The IT Product Guide
> >>>>>Read honest & candid reviews on hundreds of IT Products from real users.
> >>>>>Discover which products truly live up to the hype. Start reading now. 
> >>>>>http://productguide.itmanagersjournal.com/
> >>>>>___
> >>>>>hibernate-devel mailing list
> >>>>>[EMAIL PROTECTED]
> >>>>>https://lists.sourceforge.net/lists/listinfo/hibernate-devel
> >>>>>
> >>>>>
> >>>>>
> >>>>> 
> >>>>>
> >>>>>  
> >>>>>
> >>> 
> >>>
> >>>  
> >>>
> >
> >  
> >
> 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] 2 errors in unittest with hibernate 2.1 on oracle..

2004-12-28 Thread snpe
Hello,
  I try it with oracle 9.2,postgresql 8 beta and HypersonicSQL and 
testCollectionsInSelect pass, but 
testCopyCascade doesn't pass  

Error for testCopyCascade is :
net.sf.hibernate.NonUniqueObjectException: a different object with the same 
identifier value was already associated with the session: 9, 
of class: org.hibernate.test.Category

for all databases

regards
Haris Peco
On Tuesday 28 December 2004 10:19 am, Max Rydahl Andersen wrote:
> ..can anyone confirm that oracle (im on version 10, but i don't think that  
> should matter in this case)
> fails with errors in testCopyCascade and testCollectionsInSelect ?
> 
> Or even better, does anyone know why they fail ?
> 
> 
> 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] trivial test error

2004-12-28 Thread snpe
org.hibernate.test.excpetion

Group.hbm.xml
User.hbm.xml

have 2.0 mapping declaration and test SQLExceptionConversionTest fail
After update to 3.0 mapping test pass

regards


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] hibernate3 build - versioncheck and jacc-1_0-fr.jar

2004-12-29 Thread snpe
Hello,
   hibernate3 last cvs build have problem in versioncheck task with library 
jacc-1_0-fr.jar
- library hasn't been added in version.properties
workaround for me is that skip versioncheck task

Please fix
regards


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] automated plugin build script

2005-04-07 Thread snpe
Hi,
  I try build plugins, but org.hibernate.eclipse.mapper depend from webtools 
(probably) now
I haven't extension "org.eclipse.wst.sse.core.modelHandler" or org.eclipse.wst 
...
Is it webtools and what version webtools we need (webtools for 3.1M6 isn't out, 
yet)

regards
On Thursday 07 April 2005 08:57 pm, Max Rydahl Andersen wrote:
> On Thu, 07 Apr 2005 20:04:02 +0200, John Franey <[EMAIL PROTECTED]>  
> wrote:
> 
> > Max, and all,
> 
> You are the man! ,)
> 
> If you can bring me automated build of this stuff i'll be singing and  
> praising ,)
> 
> I've been so annoyed with eclipse PDE's tedious build system and I have  
> simply
> not have found enough solid information and time to do an automated build
> (and since I can just click "Export feature" today I haven't had enough  
> motivation
> for doing it)
> 
> Your build structure looks a-ok, having build.xml (autogenerated) and  
> hibernate-build.xml
> sounds good to me.
> 
> If you have something already then please provide it as a patch into the  
> jira and i'll try it out.
> 
> Your future plans looks great and it will a very welcome contribution.
> 
> I don't know if you have noticed that i have recently added  
> org.hibernate.eclipse.feature and
> org.hibernate.eclipse.updatesite to cvs - two things that also would be  
> great to automatically
> build (I even thing the .feature is actually what is meant to be called  
> head-less)
> 
> Again - I will really appreciate this stuff, any improvements on  
> auto-building the plugins
> will be blis!
> 
> /max
> 
> >
> > I don't know what is in place or planned for automating plugin builds.
> > I searched this mailing list archive and found discussions in Jan 2005,
> > and Dec 2004 regarding builds of plugins and source directory structure,
> > but neither of these addressed an automated mechanism.  This email is a
> > contribution.  I hope its helpful at this stage.  Attached is a
> > prototype build file to show a possibility and I can continue if it fits
> > into your plans.
> >
> >
> > Here are goals of the hibernate plugin build script:
> >  - builds all plugins from one command: ant -f plugin-build.xml  
> > 
> >
> > - deposits zipped binary and source of plugins into a drop directory.
> >
> > - supports build directly after 'cvs checkout' of the plugins, but
> > after other libs in Ext are built.
> >
> > - simplify directions on the plugin contribution howto by providing
> > additional build targets (to be identified).
> >- will copy resources into a plugin before building (leverages
> > org.hibernate.eclipse/hibernate-build.xml update target.)
> >- synchronize with the plugin build environment used by developer in
> > PDE session.   In other words, if a new library is added into the
> > plugin's build path by a plugin developer using the eclipse PDE, the new
> > dependency should be picked up without further manual intervenetion
> > (like adding a jar file to an ant property).
> >
> >
> >
> > According to  Clayberg and Rubel (in "Eclipse: Building Commercial
> > Quality Plug-ins", Addison-Wesley), there are two cool mechanisms in
> > eclipse that helps: 1) the PDE can generate a build.xml, and 2) the
> > generated build.xml can be run 'headless' (without the user interface).
> >
> > Here is proposed files and structure:
> >
> > HibernateExt
> >   plugin-build.xml
> >   org.hibernate.eclipse.*  (for each plugin)
> >   build.xml (eclipse generated file)
> >   hibernate-build.xml (provided by plugin developer)
> >
> >
> > Attached is a the initial prototype of plugin-build.xml.  There is more
> > to do; this is a proof-of-concept demo.  It can build
> > org.hibernate.eclipse zip files if org.hibernate.eclipse/build.xml was
> > generated by developer in eclipse PDE, and if you have 3.1M6 installed
> > (Headless build in 3.1M5a didn't work).  Modify the eclipse.home and
> > workspace properties in plugin-build.xml.  Run in HibernateExt as:
> > ant -f plugin-build.xml zip.plugin
> >
> > By convention, each plugin's hibernate-build.xml would have well-known
> > public targets for the plugin-build.xml to run: 'pre-build', and others
> > as needed.  In org.hibernate.eclipse/hibernate-build.xml, the target
> > pre-build would antcall 'update'.   A set of properties would be made
> > available to hibernate-build.xml (to be defined).
> >
> > To generate a build.xml by hand: in eclipse, right click on the
> > plugin.xml in the plugin's project and select PDE Tools > Create Ant
> > Build File.   I expect there is a way to generate this file headless,
> > and I will look for it.  If so, then generating the build.xml file per
> > plugin would be part of the automatic build, and PDE developer wouldn't
> > have to remember to generate it manually, and it wouldn't be in cvs.
> >
> > I'm on the lookout for examples.  I looked into the PDE plugin source
> > code, but not enough to assure myself it can be reused; I spent only
> > enough time to realize that I need to spend mu

Re: [Hibernate] antlr error during build

2005-04-08 Thread snpe
last hibernate3 cvs compile fine - you have any release/branch tag (maybe 3.0 
final)

regards
On Friday 08 April 2005 06:46 am, Max Rydahl Andersen wrote:
> On Fri, 08 Apr 2005 04:35:44 +0200, Simeon Leyzerzon <[EMAIL PROTECTED]>  
> wrote:
> 
> the ant's think its fun to make a ANT-distribution that does not run  
> without
> infecting it with project specific versions of dependent libraries.
> 
> So either you:
> 
> copy lib/antlr-*.jar and lib/junit-*.jar in to your local ant distribution  
> and then you can use "pure" ant
> OR (which is what i recommend)
> you use build.bat/sh which runs with just the libraries distributed with  
> hibernate.
> 
> /max
> 
> > Hi
> > I'm trying to build the project I've got from CVS and am getting the  
> > following error:
> >
> >
> > antlr:
> > [mkdir] Created dir:  
> > C:\Hibernate3\build\gensrc\org\hibernate\hql\antlr
> > [antlrtask] java.lang.NoClassDefFoundError: antlr/Tool
> > [antlrtask] Exception in thread "main"
> >
> >
> > BUILD FAILED
> > C:\Hibernate3\build.xml:164: ANTLR returned: 1
> >
> > How do I satisfy this antlr dependency?
> >
> > Thanks for your help.
> > Simeon
> >
> >
> >
> > ---
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real users.
> > Discover which products truly live up to the hype. Start reading now.
> > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> > ___
> > hibernate-devel mailing list
> > hibernate-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/hibernate-devel
> 
> 
> 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] automated plugin build script

2005-04-08 Thread snpe
Max,
  I can use only webtools plugins in mapper's plugin.xml - correct ?

Thanks
On Friday 08 April 2005 09:25 am, Max Rydahl Andersen wrote:
> On Fri, 08 Apr 2005 13:19:08 +0200, snpe <[EMAIL PROTECTED]> wrote:
> 
> > last cvs webtools have compile error with 3.1M6, yet
> 
> Yes, but that does not stop the small fraction of webtools that we use  
>  from working.
> 
> /max
> 
> > On Friday 08 April 2005 06:42 am, you wrote:
> >> On Fri, 08 Apr 2005 04:03:13 +0200, snpe <[EMAIL PROTECTED]> wrote:
> >>
> >> yes - the latest cvs is WST based (using their xml editor).
> >>
> >> I have not had any issues with webtools latest release on 3.1M6. Have  
> >> you ?
> >>
> >> /max
> >>
> >> > Hi,
> >> >   I try build plugins, but org.hibernate.eclipse.mapper depend from
> >> > webtools (probably) now
> >> > I haven't extension "org.eclipse.wst.sse.core.modelHandler" or
> >> > org.eclipse.wst ...
> >> > Is it webtools and what version webtools we need (webtools for 3.1M6
> >> > isn't out, yet)
> >> >
> >> > regards
> >> > On Thursday 07 April 2005 08:57 pm, Max Rydahl Andersen wrote:
> >> >> On Thu, 07 Apr 2005 20:04:02 +0200, John Franey  
> >> <[EMAIL PROTECTED]>
> >> >> wrote:
> >> >>
> >> >> > Max, and all,
> >> >>
> >> >> You are the man! ,)
> >> >>
> >> >> If you can bring me automated build of this stuff i'll be singing and
> >> >> praising ,)
> >> >>
> >> >> I've been so annoyed with eclipse PDE's tedious build system and I  
> >> have
> >> >> simply
> >> >> not have found enough solid information and time to do an automated
> >> >> build
> >> >> (and since I can just click "Export feature" today I haven't had  
> >> enough
> >> >> motivation
> >> >> for doing it)
> >> >>
> >> >> Your build structure looks a-ok, having build.xml (autogenerated) and
> >> >> hibernate-build.xml
> >> >> sounds good to me.
> >> >>
> >> >> If you have something already then please provide it as a patch into  
> >> the
> >> >> jira and i'll try it out.
> >> >>
> >> >> Your future plans looks great and it will a very welcome  
> >> contribution.
> >> >>
> >> >> I don't know if you have noticed that i have recently added
> >> >> org.hibernate.eclipse.feature and
> >> >> org.hibernate.eclipse.updatesite to cvs - two things that also would  
> >> be
> >> >> great to automatically
> >> >> build (I even thing the .feature is actually what is meant to be  
> >> called
> >> >> head-less)
> >> >>
> >> >> Again - I will really appreciate this stuff, any improvements on
> >> >> auto-building the plugins
> >> >> will be blis!
> >> >>
> >> >> /max
> >> >>
> >> >> >
> >> >> > I don't know what is in place or planned for automating plugin  
> >> builds.
> >> >> > I searched this mailing list archive and found discussions in Jan
> >> >> 2005,
> >> >> > and Dec 2004 regarding builds of plugins and source directory
> >> >> structure,
> >> >> > but neither of these addressed an automated mechanism.  This email  
> >> is
> >> >> a
> >> >> > contribution.  I hope its helpful at this stage.  Attached is a
> >> >> > prototype build file to show a possibility and I can continue if it
> >> >> fits
> >> >> > into your plans.
> >> >> >
> >> >> >
> >> >> > Here are goals of the hibernate plugin build script:
> >> >> >  - builds all plugins from one command: ant -f plugin-build.xml
> >> >> > 
> >> >> >
> >> >> > - deposits zipped binary and source of plugins into a drop
> >> >> directory.
> >> >> >
> >> >> > - supports build directly after 'cvs checkout' of the plugins,  
> >> but
> >> >> > after other libs in Ext are built.
> >> &

Re: [Hibernate] automated plugin build script

2005-04-08 Thread snpe
Max,
  Do you use only this webtools plugins (from mapper's MANIFEST file)
org.eclipse.wst.xml.core,
 org.eclipse.wst.sse.core,
 org.eclipse.wst.xml.ui,
 org.eclipse.wst.sse.ui,
 org.eclipse.wst.common.contentmodel,
 org.eclipse.wst.common.encoding

Is there dependency from JBossIde, yet ?

Thanks

On Friday 08 April 2005 09:46 am, Max Rydahl Andersen wrote:
> On Fri, 08 Apr 2005 13:34:00 +0200, snpe <[EMAIL PROTECTED]> wrote:
> 
> > Max,
> >   I can use only webtools plugins in mapper's plugin.xml - correct ?
> 
> I dont understand the question.
> 
> But my guess is you are asking for where webtools are being used, and yes  
> that
> is only in the mapper plugin.xml.
> 
> 
> /max
> >
> > Thanks
> > On Friday 08 April 2005 09:25 am, Max Rydahl Andersen wrote:
> >> On Fri, 08 Apr 2005 13:19:08 +0200, snpe <[EMAIL PROTECTED]> wrote:
> >>
> >> > last cvs webtools have compile error with 3.1M6, yet
> >>
> >> Yes, but that does not stop the small fraction of webtools that we use
> >>  from working.
> >>
> >> /max
> >>
> >> > On Friday 08 April 2005 06:42 am, you wrote:
> >> >> On Fri, 08 Apr 2005 04:03:13 +0200, snpe <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >> yes - the latest cvs is WST based (using their xml editor).
> >> >>
> >> >> I have not had any issues with webtools latest release on 3.1M6. Have
> >> >> you ?
> >> >>
> >> >> /max
> >> >>
> >> >> > Hi,
> >> >> >   I try build plugins, but org.hibernate.eclipse.mapper depend from
> >> >> > webtools (probably) now
> >> >> > I haven't extension "org.eclipse.wst.sse.core.modelHandler" or
> >> >> > org.eclipse.wst ...
> >> >> > Is it webtools and what version webtools we need (webtools for  
> >> 3.1M6
> >> >> > isn't out, yet)
> >> >> >
> >> >> > regards
> >> >> > On Thursday 07 April 2005 08:57 pm, Max Rydahl Andersen wrote:
> >> >> >> On Thu, 07 Apr 2005 20:04:02 +0200, John Franey
> >> >> <[EMAIL PROTECTED]>
> >> >> >> wrote:
> >> >> >>
> >> >> >> > Max, and all,
> >> >> >>
> >> >> >> You are the man! ,)
> >> >> >>
> >> >> >> If you can bring me automated build of this stuff i'll be singing  
> >> and
> >> >> >> praising ,)
> >> >> >>
> >> >> >> I've been so annoyed with eclipse PDE's tedious build system and I
> >> >> have
> >> >> >> simply
> >> >> >> not have found enough solid information and time to do an  
> >> automated
> >> >> >> build
> >> >> >> (and since I can just click "Export feature" today I haven't had
> >> >> enough
> >> >> >> motivation
> >> >> >> for doing it)
> >> >> >>
> >> >> >> Your build structure looks a-ok, having build.xml (autogenerated)  
> >> and
> >> >> >> hibernate-build.xml
> >> >> >> sounds good to me.
> >> >> >>
> >> >> >> If you have something already then please provide it as a patch  
> >> into
> >> >> the
> >> >> >> jira and i'll try it out.
> >> >> >>
> >> >> >> Your future plans looks great and it will a very welcome
> >> >> contribution.
> >> >> >>
> >> >> >> I don't know if you have noticed that i have recently added
> >> >> >> org.hibernate.eclipse.feature and
> >> >> >> org.hibernate.eclipse.updatesite to cvs - two things that also  
> >> would
> >> >> be
> >> >> >> great to automatically
> >> >> >> build (I even thing the .feature is actually what is meant to be
> >> >> called
> >> >> >> head-less)
> >> >> >>
> >> >> >> Again - I will really appreciate this stuff, any improvements on
> >> >> >> auto-building the plugins
> >> >> >> will be blis!
> >> >> >>
> >> >> >> /max
> >> >

Re: [Hibernate] automated plugin build script

2005-04-08 Thread snpe
On Friday 08 April 2005 02:20 pm, Max Rydahl Andersen wrote:
> On Fri, 08 Apr 2005 17:43:58 +0200, snpe <[EMAIL PROTECTED]> wrote:
> 
> > Max,
> >   Do you use only this webtools plugins (from mapper's MANIFEST file)
> > org.eclipse.wst.xml.core,
> >  org.eclipse.wst.sse.core,
> >  org.eclipse.wst.xml.ui,
> >  org.eclipse.wst.sse.ui,
> >  org.eclipse.wst.common.contentmodel,
> >  org.eclipse.wst.common.encoding
> 
> Yes, i'm only dependent on these (but they are dependent on more) - why ?
> Simply download webtools and run ... simple thing ,)

Thanks Max,
   I want stay up to date with webtools, hibernate tools etc and I have dialup 
and can't download
all every time (webtools,emf,gef,jem etc) and I build all form cvs

regards


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] Hibernate tools and database explorer

2005-04-13 Thread snpe
Hello,
  I try integrate any database explorer and hibernate tools
I want, for example, that choose object (table,views ) from explorer
and call hibernate reverse engineering  wizard.
I use sqlexplorer (patched), but I will try webtools when M4 be out (April 22)

I have any request from tools 

1) I need new method (or replace current) in JDBCFilter :

boolean acceptTableName(String catalogName,String schemaName,String tableName);

and call to this method when/except call acceptTableName(String name)

I export extension point in sqlexplorer and define popupMenu like this 
(I add in org.hibernate.eclipse.console plugin;TableNode class is from 
sqlexplorer)
...
 
  
 
 
  
 
...
ArtifactGeneratorAction call ArtifactGeneratorWizard like this :
...
public void run() {
 wizard = new ArtifactGeneratorWizard();
 IWorkbench workbench = PlatformUI.getWorkbench();
 wizard.init(workbench, (IStructuredSelection) selection);
 dialog = new WizardDialog(workbench.getActiveWorkbenchWindow()
   .getShell(), wizard);
 dialog.open();
}
...

this is screenshoot http://www.snpe.co.yu/artifactwizard.png

Hibernate Artifact Generator Wizard call ArtifactGeneratorWizard from console 
plugin with next change 
 (line 244 change is only JDBCFilter#acceptTableName):

public Object execute() {
  cfg.readFromJDBC(new JDBCFilter() {
   public boolean acceptTableName(String name) {
  if (selection == null
   || !(selection instanceof IStructuredSelection))
return !name.startsWith("BIN$"); // oracle hack
  else {
   IStructuredSelection structuredSelection = (IStructuredSelection) 
selection;
   for (Iterator iter = structuredSelection
 .iterator(); iter.hasNext();) {
Object object = iter.next();
String tableName = null;
String schemaName = null;
String catalogName = null;
if (object instanceof TableNode) {
 TableNode node = (TableNode) object;
 tableName = node.getTableInfo()
  .getSimpleName();
 schemaName = node
  .getTableInfo()
  .getSchemaName();
 catalogName = node
  .getTableInfo()
  .getCatalogName();
}
// I want check tableName,schemaName and catalogName,
// but JDBCFilter need new method
if (name.equals(tableName))
 return true;
  }
 }
return false;
  }
 });


Problem is yet with dependencies (for example, when I get table A with foreign 
key to B
I get exceptions, because JDBCBinder work with complete schema)
I can find all dependencies (exported and imported key table) and return true 
in JDBCFilter#acceptTableName
for dependencies table - with this we haven't to change JDBCBinder or
add checkBox in ArtifactGeneratorWizard for generate or not many-to-one,one-to 
many etc - Can JDBCBinder
skip generate collection (one-to-many,many-to-one ...) ?

I can set patched sqlexplorer if You want try this (It work with eclipse 
3.1M6,last cvs hibernate and hibernate tools)
  
Comments ?

Haris Peco


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] Re: Hibernate tools and database explorer

2005-04-13 Thread snpe
Hello,
yes, i want limit metadata and I wait for your changes

Question 1:
  Can I limit dependencies (many-to-one,one-to-many) in JDBCBinder ?
for example

  check box in Artifact wizard : Want you make one-to-many ?
If no then we doesn't make imported keys (jdbc concept for another side of 
foreign key)
and like for many-to-one and foreign key/exported key

Question 2:
  Do you want link to patched sqlexplorer (2-3 mb) or that I make this with 
webtools M4 ?
  I can't compile mapper plugin with current webtools, but i needn't mapper for 
this stuff

regards
Haris Peco
On Wednesday 13 April 2005 05:22 pm, Max Rydahl Andersen wrote:
> On Wed, 13 Apr 2005 19:26:47 +0200, snpe <[EMAIL PROTECTED]> wrote:
> 
> Looks great what you are doing.
> 
> If I understand you correctly this stuff simply just get some names
>  from the Data Explorer to limit what metadata our rev.eng. will get,  
> correct ?
> 
> If that is the case then if you wait a day or two you'll see stuff  
> happening
> that should make this much easier for you.
> 
> I've just added the filter method you are referring too together with
> a very flexible way of filtering tables - only possible in code at first,
> but i'll expose it in the ui too.
> 
> /max
> 
> 
> > Hello,
> >   I try integrate any database explorer and hibernate tools
> > I want, for example, that choose object (table,views ) from explorer
> > and call hibernate reverse engineering  wizard.
> > I use sqlexplorer (patched), but I will try webtools when M4 be out  
> > (April 22)
> >
> > I have any request from tools
> >
> > 1) I need new method (or replace current) in JDBCFilter :
> >
> > boolean acceptTableName(String catalogName,String schemaName,String  
> > tableName);
> >
> > and call to this method when/except call acceptTableName(String name)
> >
> > I export extension point in sqlexplorer and define popupMenu like this
> > (I add in org.hibernate.eclipse.console plugin;TableNode class is from  
> > sqlexplorer)
> > ...
> >   >  point="org.eclipse.ui.popupMenus">
> >> objectClass="net.java.sqlexplorer.dbviewer.model.TableNode"
> > id="net.java.sqlexplorer.hibernate.wizard">
> >   >label="Hibernate Artifact Generator Wizard"
> >class="org.hibernate.reveng.ArtifactGeneratorAction"
> >menubarPath="additions"
> >id="net.java.sqlexplorer.hibernate.item">
> >  
> >   
> >  
> > ...
> > ArtifactGeneratorAction call ArtifactGeneratorWizard like this :
> > ...
> > public void run() {
> >  wizard = new ArtifactGeneratorWizard();
> >  IWorkbench workbench = PlatformUI.getWorkbench();
> >  wizard.init(workbench, (IStructuredSelection) selection);
> >  dialog = new WizardDialog(workbench.getActiveWorkbenchWindow()
> >.getShell(), wizard);
> >  dialog.open();
> > }
> > ...
> >
> > this is screenshoot http://www.snpe.co.yu/artifactwizard.png
> >
> > Hibernate Artifact Generator Wizard call ArtifactGeneratorWizard from  
> > console plugin with next change
> >  (line 244 change is only JDBCFilter#acceptTableName):
> >
> > public Object execute() {
> >   cfg.readFromJDBC(new JDBCFilter() {
> >public boolean acceptTableName(String name) {
> >   if (selection == null
> >|| !(selection instanceof IStructuredSelection))
> > return !name.startsWith("BIN$"); // oracle hack
> >   else {
> >IStructuredSelection structuredSelection = (IStructuredSelection)  
> > selection;
> >for (Iterator iter = structuredSelection
> >  .iterator(); iter.hasNext();) {
> > Object object = iter.next();
> > String tableName = null;
> > String schemaName = null;
> > String catalogName = null;
> > if (object instanceof TableNode) {
> >  TableNode node = (TableNode) object;
> >  tableName = node.getTableInfo()
> >   .getSimpleName();
> >  schemaName = node
> >   .getTableInfo()
> >   .getSchemaName();
> >  catalogName = node
> >   .getTableInfo()
> >   .getCatalogName();
> > }
> > // I want check tableName,schemaName and catalogName,
> > // but JDBCFilter need new method
> > if (name.equals(tableName))
> >  return true;
> >   }
&

Re: [Hibernate] Re: Hibernate tools and database explorer

2005-04-14 Thread snpe
On Thursday 14 April 2005 07:59 am, Max Rydahl Andersen wrote:
> On Wed, 13 Apr 2005 23:12:53 +0200, snpe <[EMAIL PROTECTED]> wrote:
> 
> > Hello,
> > yes, i want limit metadata and I wait for your changes
> 
> ok.
> 
> >
> > Question 1:
> >   Can I limit dependencies (many-to-one,one-to-many) in JDBCBinder ?
> > for example
> >
> >   check box in Artifact wizard : Want you make one-to-many ?
> > If no then we doesn't make imported keys (jdbc concept for another side  
> > of foreign key)
> > and like for many-to-one and foreign key/exported key
> 
> disabling one-to-many is a ok feature, but we still need to get the  
> foreignkeys
> to do one-to-many so i don't see how this can be avoided ?
> 
> > Question 2:
> >   Do you want link to patched sqlexplorer (2-3 mb) or that I make this  
> > with webtools M4 ?
> >   I can't compile mapper plugin with current webtools, but i needn't  
> > mapper for this stuff
> 
> I'll look at syncing up with the latest webtools.
> 

Max,
  I try with last webtools cvs and it work.I will make that JDBCFilter return 
true
for all dependencies (exported and imported keys).
  webtools have complete jdbc framework (you can get table 
description,column,indexes,
keys ..) - hibernate plugin have use this and haven't to special connection in 
database

regards
Peco


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] Re: Hibernate tools and database explorer

2005-04-14 Thread snpe
On Thursday 14 April 2005 02:08 pm, Max Rydahl Andersen wrote:
> >> I'll look at syncing up with the latest webtools.
> >>
> >
> > Max,
> >   I try with last webtools cvs and it work.I will make that JDBCFilter  
> > return true
> > for all dependencies (exported and imported keys).
> >   webtools have complete jdbc framework (you can get table  
> > description,column,indexes,
> > keys ..) - hibernate plugin have use this and haven't to special  
> > connection in database
> 
> Hibernate plugins *have*(?!) to use this ?
> you mean *can* use this, right - it should not be an
> requirement since it will not work for ant/cmdline tools.
> 

can, of course
sorry and I understand why not




---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] plugin builds: what dependencies

2005-04-15 Thread snpe
Hello,
 There are big API changes in last webtools - mapper plugin doesn't work (xml 
editor),
other is fine 
regards
On Thursday 14 April 2005 08:29 pm, Max Rydahl Andersen wrote:
> On Thu, 14 Apr 2005 21:55:34 +0200, John Franey <[EMAIL PROTECTED]>  
> wrote:
> 
> > Max, and all:
> >
> > What plugins and builds does the head of the plugin cvs tree depend on?
> >
> > I know that it now depends on wst: what build?
> 
> at the moment WTP M3
> >
> > Anything else?
> 
> soon it will be M4 or one of the latest I-build.
> 
> /max
> >
> > Thanks,
> > John
> >
> >
> >
> > ---
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real users.
> > Discover which products truly live up to the hype. Start reading now.
> > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> > ___
> > hibernate-devel mailing list
> > hibernate-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/hibernate-devel
> 
> 
> 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] plugin builds: what dependencies

2005-04-15 Thread snpe
On Friday 15 April 2005 01:05 pm, Max Rydahl Andersen wrote:
> On Fri, 15 Apr 2005 13:58:20 +0200, Max Rydahl Andersen  
> <[EMAIL PROTECTED]> wrote:
> 
> 
> >
> > yes - xml editor is the only one that is dependent on it.
> >
> > And the changes AFAIK is "just" renames - but i'll follow up on it.
> 
> and I just updated it and it works fine after some reimports and a few
> renames.
> 

only 1 compile error, yet
org.hibernate.eclipse.mapper.editors.HBMXMLHyperlink, line 21

assert(element != null)

can't resolve symbol

I change with org.eclipse.core.internal.runtime.Assert.isNotNull(element) and 
plugin compile,
but I can see any editor. Is there ? 

regards


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] hibernate tools - reverse engineering

2005-04-15 Thread snpe
Max,
  This plugin for call hibernate artifact wizard from database server view 
(webtools)
Popup menu is for views and tables
Plugin work when choose tables without dependencies with another tables -
for better version You have to change JDBCBinder

link : http://www.snpe.co.yu/org.hibernate.reveng.zip
(source included)

regards
Haris Peco


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] plugin builds: what dependencies

2005-04-15 Thread snpe

> With WTP we used content based editor detection - meaning that xml files  
> that
> starts with the main tags in hbm.xml and cfg.xml will be handled by our
> xml editors.
> 
> No need to register a specific xml editor anymore.
>

eclipse start xml editor from wtp project - there is xml source editor 
registered for xml files
my question is : is there hibernate xml editor (no one from webtools) ?
I know register editor (or check extension point in plugin), but I can't find 
hibernate xml anywhere

Thanks


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] Re: hibernate tools

2005-04-18 Thread snpe
Hello,
This is new reveng plugin

Popup work with table,view and schema - when user choose schema filter
return all tables in schema (choosing schema work when doesn't exists 
default_schema
in hibernate config)

http://www.snpe.co.yu/org.hibernate.reveng1.zip

regards
Haris Peco
On Monday 18 April 2005 07:23 am, Max Rydahl Andersen wrote:
> On Mon, 18 Apr 2005 04:52:27 +0200, snpe <[EMAIL PROTECTED]> wrote:
> 
> > Max,
> >   I see new version JDBCFilter etc
> > Can I change reveng plugin or you have yet adding
> >
> 
> JDBCFilter now uses TableIdentifier which should allow you to filter
> on catalog and schema.
> 
> Partial rev.eng is not done yet.
> 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] Re: hibernate tools

2005-04-18 Thread snpe
Max,
  This is change :

line 214-218 in ArtifactGeneratorWizard

except this :

public Object execute() {
 cfg.readFromJDBC(new JDBCFilter() {
  public boolean acceptTableName(TableIdentifier name) {
   return !name.getName().startsWith("BIN$"); // to avoid oracle pain. 
HACK! need to be configurable
  }
 });

I need
cfg.readFromJDBC(new JDBCWstFilter(selection));

selection can be declared like IStructuredSelection :

JDBCWstFilter work like your wizard when selection == null

Conslusion :

 Can you do this

 - Include JDBCWstFilter in org.hibernate.eclipse.console and change 
ArtifactGeneratorWizard that call this filter or

 - create field filter and setter method, call this filter in line 214

 I can use original wizard, then


regards 
On Monday 18 April 2005 12:13 pm, Max Rydahl Andersen wrote:
> On Mon, 18 Apr 2005 15:35:47 +0200, snpe <[EMAIL PROTECTED]> wrote:
> 
> > Hello,
> > This is new reveng plugin
> >
> > Popup work with table,view and schema - when user choose schema filter
> > return all tables in schema (choosing schema work when doesn't exists  
> > default_schema
> > in hibernate config)
> >
> > http://www.snpe.co.yu/org.hibernate.reveng1.zip
> 
> please update the jira issue with it.
> 
> btw. I looked at it and I like the concept,
> but I found that the wizard code you have looks very
> redundant (meaning it copies almost all the code from the existing wizard).
> 
> I would integrate this functionallity if we could instead
> make some code that avoids this redundancy.
> 
> /max
> 
> 
> >
> > regards
> > Haris Peco
> > On Monday 18 April 2005 07:23 am, Max Rydahl Andersen wrote:
> >> On Mon, 18 Apr 2005 04:52:27 +0200, snpe <[EMAIL PROTECTED]> wrote:
> >>
> >> > Max,
> >> >   I see new version JDBCFilter etc
> >> > Can I change reveng plugin or you have yet adding
> >> >
> >>
> >> JDBCFilter now uses TableIdentifier which should allow you to filter
> >> on catalog and schema.
> >>
> >> Partial rev.eng is not done yet.
> >>
> 
> 
> 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] Scope of Hibernate 3.1

2005-06-09 Thread snpe
Hello,
- update/insert/delete in ScrollableResults in same session - it would be nice 
for swing long session

Thanks
On Wednesday 08 June 2005 07:19 pm, Gavin King wrote:
> As you all know, I am still just not sold on this.
> 
> -Original Message-
> From: Max Andersen 
> Sent: Wednesday, 8 June 2005 3:15 PM
> To: Gavin King; hibernate-devel@lists.sourceforge.net
> Subject: Re: [Hibernate] Scope of Hibernate 3.1
> 
> 
> Adding the ResultTransformer or similar to native sql and hql  
> (http://opensource.atlassian.com/projects/hibernate/browse/HHH-587)
> 
> Would complete the query result and entitymode possibilites.
> 
> -max
> 
> > I've put some thought into the scope of work for Hibernate 3.1.
> >
> > Here's what I came up with:
> >
> >
> > * Finish bulk update/delete, including, HHH-352
> > * Clean up tuple package and make it truly extensible
> > * Auto-detect {..} in queries, HHH-596
> > *   Support {coll.key}, etc, TODO-109
> > *   Support  in , HHH-381
> > *   Support XML based named result set mappings, HHH-597
> > *   Support joins in DetachedCriterias when used for subselecting
> > *   Keep readonly entities in soft references TODO-162
> >
> >
> > *   Maybe attribute-level query space granularity
> > *   Maybe add bulk insert ... select
> > *   Maybe finish StatelessSession stuff for customer
> > *   Maybe transform(), HHH-175
> >
> >
> > So there are three main broad areas here:
> >
> >
> > *   native SQL enhancements
> > *   bulk HQL functionality
> > *   performance tuning for "large" sessions
> >
> >
> > Along with a couple of other small things.
> >
> >
> > Thoughts?
> >
> 
> 
> 
> 
> ---
> This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
> a projector? How fast can you ride your desk chair down the office luge track?
> If you want to score the big prize, get to know the little guy.  
> Play to win an NEC 61" plasma display: http://www.necitguy.com/?r 
> ___
> hibernate-devel mailing list
> hibernate-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
> 


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel