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 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
> be fine for 90% of all cases. I admit, the latter one looks ugly, however
it
> should be sufficient.
if you write from xxx in class yyy, the xxx is used to reference the table
in the where clause (just like sql). you could even write from mytable1 in
class eg.MyTable, mytable2 in class eg.MyTable.....

>
> I have one more issue regarding the class name within a literal text.
> Automatic refactoring, e.g. renaming the classes name, does not modify the
> class name within the literal text. Any ideas about that?
I always write "from xxx in class" + yyy.class.getName() + "...."

hth chris
>
> regards
> Juergen
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: To learn the basics of securing
> your web site with SSL, click here to get a FREE TRIAL of a Thawte
> Server Certificate: http://www.gothawte.com/rd524.html
> _______________________________________________
> hibernate-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
>



-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to