Received: (qmail 29193 invoked from network); 28 Jul 2011 11:01:37 -0500
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by static-ip-85-25-126-90.inaddr.intergenia.de with SMTP; 28 Jul 2011 11:01:20 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 51B17E3635C;
 Thu, 28 Jul 2011 12:01:17 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1311868877; bh=3NV+JQEqVZZRmBoUaw6Zd3zQWqId0zKuBnp3CwDm
 s8A=; h=MIME-Version:Content-Type:Subject:Date:Message-ID:
	 In-Reply-To:References:From:To:Sender:Reply-To:List-help:
	 List-unsubscribe:List-Id:List-subscribe:List-owner:List-post:
	 List-archive; b=JLZDoEePeDIFEZ48rTcs4ev3IJ/FYKJfJT1H3sp1tPm3gEyO24
 sYu8H+ee8fEbObEmp3dIdgwH2SV+Po1NAZVVYlCCdqZtYUfybc7x9ryogKBwYxk0zR3
 Wf3mOAqIUSrJB5MjJWF0b1bakUPSIYYj4kFmlu6lNE7NFtlmj7HXYI=
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id V5pMtAdvnf3b; Thu, 28 Jul 2011 12:01:17 -0400 (EDT)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 297B0E360FE;
 Thu, 28 Jul 2011 12:00:34 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Thu, 28 Jul 2011 11:59:52 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])	by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 87375E35EB0	for <oracle-l@freelists.org>; Thu, 28 Jul 2011 11:59:52 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])	by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)	with ESMTP id 2+CqtfpV5a+3 for <oracle-l@freelists.org>;	Thu, 28 Jul 2011 11:59:52 -0400 (EDT)
Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190])	by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id F2B67E35E42	for <oracle-l@freelists.org>; Thu, 28 Jul 2011 11:59:51 -0400 (EDT)
Received: from sbhfislrext02.fnfis.com ([192.168.249.140])	by SCSFISLTC02 (8.14.3/8.14.3) with ESMTP id p6SFxmhR026646;	Thu, 28 Jul 2011 10:59:48 -0500
Received: from SBHFISLTCGW04.FNFIS.COM (Not Verified[10.132.248.123]) by sbhfislrext02.fnfis.com with MailMarshal (v6,5,4,7535)	id <B4e31876e0000>; Thu, 28 Jul 2011 10:59:42 -0500
Received: from CMBFISLTC13.FNFIS.COM ([10.132.211.41]) by SBHFISLTCGW04.FNFIS.COM with Microsoft SMTPSVC(6.0.3790.4675);	 Thu, 28 Jul 2011 10:59:47 -0500
x-mimeole: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CC4D3F.5FE2D19B"
Subject: RE: Question for Java developers on Hibernate
Date: Thu, 28 Jul 2011 11:00:18 -0500
Message-ID: <5AB39101E7EA7841BDE65D8E04BBD2A4017BB2AD@CMBFISLTC13.FNFIS.COM>
In-Reply-To: <CAJ2dSGQu8GLTqZ_zV_560YN4suN7oVheByxuUJGUjx+7Mp27xA@mail.gmail.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Question for Java developers on Hibernate
References: <CAJ2dSGQu8GLTqZ_zV_560YN4suN7oVheByxuUJGUjx+7Mp27xA@mail.gmail.com>
From: "Blanchard, William G" <William.Blanchard@fisglobal.com>
To: <cicciuxdba@gmail.com>, "oracle-l-freelists" <oracle-l@freelists.org>
X-OriginalArrivalTime: 28 Jul 2011 15:59:47.0977 (UTC) FILETIME=[603CAF90:01CC4D3F]
X-archive-position: 37672
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: William.Blanchard@fisglobal.com
Precedence: normal
Reply-To: William.Blanchard@fisglobal.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
------_=_NextPart_001_01CC4D3F.5FE2D19B
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="ISO-8859-1"

This has everything to do with lazy or incompetent developers and
nothing to do with Java or Hibernate.  You can log the sql statements
using log4j or via a configuration property.

=20

=20

WGB

=20

From: oracle-l-bounce@freelists.org
[mailto:oracle-l-bounce@freelists.org] On Behalf Of Guillermo Alan Bort
Sent: Thursday, July 28, 2011 9:47 AM
To: oracle-l-freelists
Subject: Question for Java developers on Hibernate

=20

So... I'm very annoyed today with one of out beloved developers...

Due to some "security" measures (in fact it was a political issue) we
had to do a database refresh and upgrade all in one step using expdp.
It's not all that bad, but the dev team that is supposed to use the new
database is having a lot of trouble with the new DB (everything from
synonyms to grants had to be reviewed, thank god for TOAD's "compare
database" feature).

The problem is that the database was refreshed from the production DB
and the old dev DB had a few modifications, so basically now they are
having trouble with the dev version of the app (missing
columns/tables?).=20

The app is a java monster that uses hibernate to connect to Oracle (did
I ever mention my aversion to frameworks?) and when I asked exactly WHAT
table was missing the dev team didn't seem to have an answer, all they
are getting is ORA-942... so I asked for the SQL Query and the reply was
that they are using hibernate and that it doesn't allow them to see the
queries.

I honestly know very little about java and even less about hibernate,
but there must be a way to see this (other that tracing the session)...
so my question to those of you who know hibernate or work with hibernate
is how do you see what query the framework is executing?

and if hibernate doesn't actually have a way to easily log what its
doing... well I'm amazed that anyone would choose it for production use.

thanks :-)
Alan.-

_____________

The information contained in this message is proprietary and/or confidentia=
l. If you are not the intended recipient, please: (i) delete the message an=
d all copies; (ii) do not disclose, distribute or use the message in any ma=
nner; and (iii) notify the sender immediately. In addition, please be aware=
 that any message addressed to our domain is subject to archiving and revie=
w by persons other than the intended recipient. Thank you.
_____________

------_=_NextPart_001_01CC4D3F.5FE2D19B
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="ISO-8859-1"

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV=3D"Content-Type" CONTENT=
=3D"text/html; charset=3Dus-ascii"><meta name=3DGenerator content=3D"Micros=
oft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue vli=
nk=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span style=3D'f=
ont-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>This has =
everything to do with lazy or incompetent developers and nothing to do with=
 Java or Hibernate.&nbsp; You can log the sql statements using log4j or via=
 a configuration property.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'=
><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span style=3D'font-size:=
11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p><=
/span></p><p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:=
"Calibri","sans-serif";color:#1F497D'>WGB<o:p></o:p></span></p><p class=3DM=
soNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"=
;color:#1F497D'><o:p>&nbsp;</o:p></span></p><div style=3D'border:none;borde=
r-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=3DMsoNormal><=
b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:<=
/span></b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"=
'> oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org] <b>=
On Behalf Of </b>Guillermo Alan Bort<br><b>Sent:</b> Thursday, July 28, 201=
1 9:47 AM<br><b>To:</b> oracle-l-freelists<br><b>Subject:</b> Question for =
Java developers on Hibernate<o:p></o:p></span></p></div><p class=3DMsoNorma=
l><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>So... I'm very annoyed today wi=
th one of out beloved developers...<br><br>Due to some &quot;security&quot;=
 measures (in fact it was a political issue) we had to do a database refres=
h and upgrade all in one step using expdp. It's not all that bad, but the d=
ev team that is supposed to use the new database is having a lot of trouble=
 with the new DB (everything from synonyms to grants had to be reviewed, th=
ank god for TOAD's &quot;compare database&quot; feature).<br><br>The proble=
m is that the database was refreshed from the production DB and the old dev=
 DB had a few modifications, so basically now they are having trouble with =
the dev version of the app (missing columns/tables?). <br><br>The app is a =
java monster that uses hibernate to connect to Oracle (did I ever mention m=
y aversion to frameworks?) and when I asked exactly WHAT table was missing =
the dev team didn't seem to have an answer, all they are getting is ORA-942=
... so I asked for the SQL Query and the reply was that they are using hibe=
rnate and that it doesn't allow them to see the queries.<br><br>I honestly =
know very little about java and even less about hibernate, but there must b=
e a way to see this (other that tracing the session)... so my question to t=
hose of you who know hibernate or work with hibernate is how do you see wha=
t query the framework is executing?<br><br>and if hibernate doesn't actuall=
y have a way to easily log what its doing... well I'm amazed that anyone wo=
uld choose it for production use.<br><br>thanks :-)<br clear=3Dall>Alan.-<o=
:p></o:p></p></div>
<DIV>
_____________<BR>
<BR>
The information contained in this message is proprietary and/or confidentia=
l. If you are not the intended recipient, please: (i) delete the message an=
d all copies; (ii) do not disclose, distribute or use the message in any ma=
nner; and (iii) notify the sender immediately. In addition, please be aware=
 that any message addressed to our domain is subject to archiving and revie=
w by persons other than the intended recipient. Thank you.<BR>
_____________<BR>
</DIV></body></html>

------_=_NextPart_001_01CC4D3F.5FE2D19B--
--
http://www.freelists.org/webpage/oracle-l


