Good Morning Sir,
Now, I m using hibernate for my project. At that time I have handled all the
cases including association.
But some problem in genralization of classes. I m so confused how to make
mapping and java file in hibernate for my this case .
The case is :
--
Good Morning Sir,
Now, I m using hibernate for my project. At that time I have handled all the
cases including association.
But some problem in genralization of classes. I m so confused how to make
mapping and java file in hibernate for my this case .
The case is :
--
I've applied your proposal.
For my information, which websphere version are you using?
Juraj Burian wrote:
Hi folks,
we have problem with method public static final URL
getJarURLFromURLEntry(URL url, String entry) throws
IllegalArgumentException in org.hibernate.ejb.packaging.JarVisitor.
The p
The question is: does a "wsjar" behave exactly the same as a regular
"jar" regarding the parsing protocol? They probably have a good reason
to have introduced an other protocol (well maybe not).
Can you confim that wsjar are actually propertly parsed by the Jar visitor?
Juraj Burian wrote:
Hi
Hi folks,
we have problem with method public static final URL
getJarURLFromURLEntry(URL url, String entry) throws
IllegalArgumentException in org.hibernate.ejb.packaging.JarVisitor.
The problem is in condition : if ( "jar".equals( url.getProtocol() )
... , under WAS is protocol "wsjar" inste
user questions should go to the user forum.
and btw. Oracle has the same behavior so look for how that is solved.
Hint: It is not in the dialect but by usertypes or application logic.
/max
Hello list,
i'm currently trying to write a dialect for the Gupta SQLBase having the
problem, that the
Hello list,
i'm currently trying to write a dialect for the Gupta SQLBase having the
problem, that the database wants empty strings '' like ' ' because otherwise
if you write the former it assumes that it is a null value which doesn't
work nice on non null columns.
I know this is not nice, but i
go to the user forum or the wiki or the faq or the book where this is
answered many times...
/max
Hi,
I'm begining with hibernate...
I have a problem with relationships, this problem is describe below:
There is an object A, this object have an association (many to many)
with an
object B.
Hi,I'm begining with hibernate...I have a problem with relationships, this problem is describe below:There is an object A, this object have an association (many to many) with an object B. So, this relationship creates a table between A and B called AB.
Now, i have an object C and this object have a
i canćt access to hibernate (and hibernate tools cvs)
this is error
can't create temporary directory /tmp/cvs-serv680
Too many links
what is a problem ?
---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for proble
Hi,
I'm trying to get a list of universities from my site table. My
current approach is to write a select distinct query in Hibernate, for
the siteParentName attribute; then use that list's size() method to get
the number of elements.
I am getting a null pointer exception when instantiating th
@lists.sourceforge.net
Subject: [Hibernate] Problem
configuring Hibernate with mappings via an InputStream
Hi,
I have an InputStream object that is
constructed from a hibernate XML config file (in some other place) and I am
trying to get the mappings contained within it read into the
Hi,
I have an InputStream object that is constructed from a
hibernate XML config file (in some other place) and I am trying to get the
mappings contained within it read into the Hibernate Configuration object.
Ideally I could use the method configure(File file), but since I don’t ha
On Wed, 29 Dec 2004 18:55:33 +0530, Tarun Bansal
<[EMAIL PROTECTED]> wrote:
Have you set the dialect to Oracle9Dialect ?
/max
Hi,
I am trying to build Hibernate 2.1 on windows 2000 using the database
as Oracle 9i. The Hibernate2.jar has been successfully build. But all
the tests are failing. The
Hi,
I am trying to build Hibernate 2.1 on windows 2000 using the database
as Oracle 9i. The Hibernate2.jar has been successfully build. But all
the tests are failing. The main reason for failing the test cases is
that the SQL create queries fired by the tests are not compatible with
the oracle 9i.
Great, you made my day!
:)
Joshua Davis wrote:
Try it now. :)
Gavin King wrote:
Guys, in the new query parser, some SQL functions like upper() and
max() do not work in the select clause, since they expect to be
passed the type of the expression they are applied to.
Currently MethodNode.resolve() pa
Try it now. :)
Gavin King wrote:
Guys, in the new query parser, some SQL functions like upper() and
max() do not work in the select clause, since they expect to be
passed the type of the expression they are applied to.
Currently MethodNode.resolve() passes null:
SQLFunction function =
getSe
Guys, in the new query parser, some SQL functions like upper() and
max() do not work in the select clause, since they expect to be
passed the type of the expression they are applied to.
Currently MethodNode.resolve() passes null:
SQLFunction function =
getSessionFactoryHelper().findSQLFunct
Please search and use the user forum for such questions... and the doc :-)
Emmanuel Bernard
01.55.21.52.14
Fnac - DSI
Direction France - Nouvelles technologies
67, boulevard du Gal Leclerc
92612 Clichy Cedex
Robb Greathouse wrote:
I can query by example with the following code perfectly; except wh
I can query by example with the following code perfectly; except when the
primary key (ID) is the only one set. Then the where clause read "Where
1=1" (1 being the unique ID). When the example object only has the
ID set it loads all entries in the table. Is there something else I need
to
Hi All,
I am trying to implement the
persistence mechanism through Hibernate 2.1 from a Stateless Session
Bean.
So here is how it
start..
SessionFactory sessionFactory = new
Configuration().configure().buildSessionFactory();
This results in a error as
follows...
Pro
Hi All,
I am trying to invoke
implement the persistence mechanism through Hibernate 2.1 from a Stateless
Session Bean.
So i start of like
this..
SessionFactory sessionFactory = new
Configuration().configure().buildSessionFactory();
This results in a error as
follows...
Can someone please please help me with this error:
TIA,
Kunal
jboss-service.xml
===
jboss.jca:service=RARDeployer
jboss.jca:service=LocalTxCM,name=OracleDS
Test.hbm.xml
java:/hibernate/HibernateFactory
java:/OracleDS
net.sf.hibernate.di
PROBLEM DESCRIPTION
===
I have two tables (each have composite keys). One
composit key is a subset of the other one. I get
following message error during mapping processing:
net.sf.hibernate.MappingException: Foreign key
(ROLE_ABSENCE [ABSENCETYPE_VERSIONID])) must have same
numbe
PROBLEM DESCRIPTION
===
I have two tables (each have composite keys). One
composit key is a subset of the other one. I get
following message error during mapping processing:
net.sf.hibernate.MappingException: Foreign key
(ROLE_ABSENCE [ABSENCETYPE_VERSIONID])) must have same
numbe
I've fixed this in CVS. Please test the fix. TIA
St-Pierre Philip wrote:
I have a many-to-many association between two objects. The association
table contains the idbag identifier, the identifier of each associated
objects and additionnal fields (Collection of components). Here is the
associat
This seems to be a bug. Please submit to JIRA. TIA
St-Pierre Philip wrote:
I have a many-to-many association between two objects. The association
table contains the idbag identifier, the identifier of each associated
objects and additionnal fields (Collection of components). Here is the
associ
Title: Problem with Idbag...
I have a many-to-many association between two objects. The association table contains the idbag identifier, the identifier of each associated objects and additionnal fields (Collection of components). Here is the association table:
ID_EC
Hi!
I have a little problem with hibernate(2.0.3) and postgres (7.2)
when i use net.sf.hibernate.tool.hbm2ddl.SchemaExport to generate my database
i get some errors :
v.g. :
alter table DOCUMENT drop constraint FK6202C11BED92EF77
Unsuccessful: ERROR: parser: parse error at or near ""
alter table
Hi!
I have a little problem with hibernate an postgres.
when i use net.sf.hibernate.tool.hbm2dll.SchemaExport to generate my tables
I get a lot of parse error from the database :
v.g. :
alter table DOCUMENT drop constraint FK6202C11BED92EF77
Unsuccessful: ERROR: parser: parse error at or near ""
Hi dosapati,
I had the same problem as you ('0' being saved into the DB regardless of the
value set). It turns out that the problem was with the mysql jdbc driver I
was using. I was using the "org.gjt.mm.mysql.Driver" version but am now
using the "com.mysql.jdbc.Driver" version (the so-called off
hi,
I solved this problem by using the new oracle driver.
regards
prasad chandrasekaran
- Original Message -
From: "Dongli Zhang" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 14, 2003 10:43 PM
Subject: hibernate problem
> hi prasad,
>
&g
You are mistaken.
dosapati wrote:
I am using: Hibernate 2.0.1, MySQL - 4.0.12 database.
When boolean is used in hbm mapping files, SchemaExport is generating
'tinyint' type column for MySQL DB. But at runtime the value is always
getting saved as '0' in the column even for 'true' value.
But the
I am using: Hibernate 2.0.1, MySQL - 4.0.12
database.
When boolean is used in hbm mapping files, SchemaExport is generating
'tinyint' type column for MySQL DB. But at runtime the value is always getting
saved as '0' in the column even for 'true' value.But the same thing is
working when I u
IBM added support for that syntax with V5R2. You could also intercept the order by
clause where it is built or where it is used and strip out the table. That change
shouldn't take too long.
David Morris
>>> <[EMAIL PROTECTED]> 10/17/2003 1:15:45 PM >>>
Hello hibernate boys,
I'm new with hibern
Hello hibernate boys,
I'm new with hibernate and i'm having a problem with a SQL formed by it.
The SQL formed by hibernate says
"Select ent.desc as desc
From art as ent
Order by ent.desc"
And when the program runs it give me and SQL exception with the text
"invalid column name" becouse t
L PROTECTED]
> Sent: Thursday, October 16, 2003 7:07 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [Hibernate] Problem with Hibernate and MSSQL JDBC diver
> when Rereading columns
>
>
> Unfortunately, no. I've heard that the jTDS driver is more
> complian
sage-
From: Eric Pugh [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 12:00 PM
To: 'Sandeep Dath'; [EMAIL PROTECTED]
Subject: RE: [Hibernate] Problem with Hibernate and MSSQL JDBC diver when
Rereading columns
I agree. The Microsoft JDBC driver was purchased by Microsoft
> Sent: Thursday, October 16, 2003 6:21 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [Hibernate] Problem with Hibernate and MSSQL JDBC diver
> when Rereading columns
>
>
> Rumors apart, I believe jTDS has very recently moved (in the Hibernate
> context) from just a
sday, October 16, 2003 11:06 AM
To: 'Sandeep Dath'; [EMAIL PROTECTED]
Subject: RE: [Hibernate] Problem with Hibernate and MSSQL JDBC diver when
Rereading columns
Unfortunantly I only have the microsoft one.. I had heard jTDS was better,
and faster, but have never found the
IL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [Hibernate] Problem with Hibernate and MSSQL JDBC diver
> when Rereading columns
>
>
> Eric,
>
> Have you tried using the jTDS driver? If so, what were your
> results? I
> believe jTDS passed all the Hibernate tests? (I
:47 AM
To: [EMAIL PROTECTED]
Subject: RE: [Hibernate] Problem with Hibernate and MSSQL JDBC diver when
Rereading columns
I have a unit test demonstrating this issue. I would like to commit it in
test/mssql directory. I also want to commit a couple other unit tests that
demonstate limitations with
; From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Eric
> Pugh
> Sent: Thursday, October 16, 2003 3:29 PM
> To: [EMAIL PROTECTED]
> Subject: [Hibernate] Problem with Hibernate and MSSQL JDBC diver when
> Rereading columns
>
>
> We have a problem with the
We have a problem with the Microsoft JDBC driver throwing a "can not reread
column" exception. We have discovered that it only appears if the resultset
contains a NTEXT, TEXT or IMAGE column. The driver then imposes the
limitation that columns must be read increasing column indexes and that they
m
Ooops. Sorry. I mean to say "mistaken" LOL.
Gavin King wrote:
You are mistake.
---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
hibernate-devel ma
You are mistake.
Are you sure you didn't declare the column as "timestamp" instead of
"datetime" in MySQL?
Laurent Fleuriot wrote:
Hi,
I have a problem with timestamp.
My problem is that I have an object java with 2 dates( start and end).
When I insert the object, the date "end" is null BU
Hi,
I have a problem
with timestamp.
My problem is that
I have an object java with 2 dates( start and end). When I insert the
object, the date "end" is null BUT hibernate inserts into my database (mysql)
the current Time.
So, how can I tell
to hibernate that it must insert the end date
Laurent,
With regards to the LEFT JOIN clauses, I've always used mapped Set objects
(many-to-one,one-to-many) and then interated the resulting Java Set object
to return only the objects that I need. I'm sure there's a more efficient
way to do this though, and I'd love to hear what you find out
Hi,
I would like to have
the query Hibernate of this query sql :
select document.pbl_id from pbl_version_doc
documentleft join reponse on reponse.VPr_ID = document.VPr_IDleft join
reponse_pbl_sit on (reponse_pbl_sit.rps_id = reponse.rps_id and
reponse_pbl_sit.vst_id <> '472a03cb4971e3
te explain this topic far better than me.
good luck
stefano
-Messaggio originale-
Da: dosapati [mailto:[EMAIL PROTECTED]
Inviato: giovedì 25 settembre 2003 12.48
A: Travelli Stefano; [EMAIL PROTECTED]
Oggetto: Re: [Hibernate] problem in using JTA datasources
Stefano,
thanks for your res
Yeah you are right I got the latest and it did worked.
Is there a problem with the Date
I was trying between clause in where condition for date
and to supply the two dates
I was using Calendar.getTime();
like query.setParameter("dt", Calendar.getTime());
It gave me class cast exception.
Thanks for
- Original Message -
From: "Travelli Stefano" <[EMAIL PROTECTED]>
To: "dosapati" <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 3:06 PM
Subject: R: [Hibernate] problem in using JTA datasources
> Change the order of the last statements:
>
> // first flush
I am facing problems in using
UserTransaction & JTA datasource with Hibernate.
I am using JOTM as TransactionManager
and XAPool ass JTA datasource. To use them,
first I resitered them from Tomcat's
server.xml as Resources.My java code is like this:
try
{ Context ctx = new
Initial
http://www.hibernate.org/117.html#A20
Please do not post these kinds of questions to the development list. TIA.
Oisin Kim wrote:
Hi All,
Been using Hibernate for about 2 weeks now and have run into the
following problem, hopefully someone out there knows what I'm doing
wrong. I've read the hiber
Hi All,
Been using Hibernate for about 2 weeks now and have run into the
following problem, hopefully someone out there knows what I'm doing
wrong. I've read the hibernate manual and checked the web for something
similar, but can't find anything like this, I must be doing something
stupid!
Thanks i
no problem found when I use 2.01, but when I upgrade to 2.1b3:
[19/Sep/2003 20:27:29:4] error: Exception: SERVLET-execution_failed: Error in
executing servlet SvltAgentSMS: java.lang.AbstractMethodError:
net/sf/hibernate/persister/AbstractEntityPersister.getTableName
Exception Stack Trace:
using Hibernate 2.0 beta 5
>
> - Original Message -
> From: "Juozas Baliuka" <[EMAIL PROTECTED]>
> To: "Prasad Iyer" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Wednesday, September 17, 2003 9:13 PM
> Subject: Re: [Hiberna
een modified it fires insert or update statement?
Thanks for the help.
I am using Hibernate 2.0 beta 5
- Original Message -
From: "Juozas Baliuka" <[EMAIL PROTECTED]>
To: "Prasad Iyer" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, Septem
Have you tried to commit transaction ?
- Original Message -
From: "Prasad Iyer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 17, 2003 1:34 PM
Subject: [Hibernate] Problem
Hi,
I am using Microsoft SQL Server as a database and Hibernate vers
Hi,
I am using Microsoft SQL Server as a
database and Hibernate version 2.0.5 beta. We are facing a problem that whenever
a query get executed we get the result but while running it for the second time
it hangs. Microsoft SQL Server service needs to be restarted.
Can anybody help me
regards
p
Hello All,
I am new in this list and I have a little "beginner" problem:
I have one table called "Clientes" in a MySQL database and using the hibernate
framework I can not save a new object at this table.
No error is reported but the object is not insert in the table.
Bellow is the content of
hi,
I have a problem
with the update collection.
I have 2 classes.
classA and classB
classA
{
...
Collection objectClassB;
}
All id are assigned.
And I made an Interceptor and a class Persistent implements
LifeCycle
When I make
update(objectClassA), I have an exception
Gavin King wrote:
Re: [Hibernate] Problem with polymorphism="explicit"
This is ALL as expected. You can not load the same
database row as two
different objects. That is pathalogical.
Isn't this exactly what the Lightweight Class pattern is supposed to
accompli
This is ALL as expected. You can not load the same database row as two
different objects. That is pathalogical.
You can call session.evict(info) if you wish to reload it as a different
class.
Gavin
> Hi all,
>
> I'm hoping someone can point me in the right direction. I'm using the
> Lightwe
Hi all,
I'm hoping someone can point me in the right direction. I'm using the
Lightweight Class design pattern and I cannot seem to get
polymorphism="explicit" working as expected.
I have an Info and Gene object, and when I try to do this:
Info info = (Info)session.load(Info.class, "PA267");
Hi,
ich have a class and a mapping. Now I enhance the class and mapping
and I want to run SchemaUpdate from inside my code.
I add a property 'old' to my code as well as to the mapping file.
The generated sql update statement is:
alter table xattr add columnold VARCHAR(20)
alter table attributes ad
On 12 Feb (09:14), Jason Carreira wrote:
> Why is this in the jar file? I just want to use the hibernate.cfg.xml
> and provide my own connections. Hibernate doesn't need to know anything
> about JDBC drivers in my case, and I wouldn't want to default to DB2
> anyway.
>
> I guess I can go in and r
Hi,
I've been working on upgrading us to 2.0, and we've run into a strange
bug. It seems that the hibernate.jar file ships with a
hibernate.properties file in it with the JDBC driver set to DB2. Since
we're using Oracle and thus don't have the DB2 driver, it's throwing an
exception.
Why is this i
I'm not 100% certain ... it would help if you would post a Hibernate
debug-level log
Did you set unsaved-value on HibernateAdministrator? The "creating new rows
instead of updating existing rows" thing is almost always a problem to do
with
unsaved-value being set wrongly...
Did you read the new
I hate to ask, but I'm having a problem I just can
track down.. maybe someone can help...
I currently have serveral objects which all have
the following relationship to an Audit/Note object where administrators can add
a note about a specific object (user account, system device, etc):
rn? Say the word, and I'll take a stab at
> submitting a patch.
>
> Thanks,
>
> Ken
>
>
>
> -Original Message-
> From: Ken Robinson
> Sent: Wednesday, January 08, 2003 11:05 AM
> To: 'Gavin King'; [EMAIL PROTECTED]
> Subject: R
ake a stab at
submitting a patch.
Thanks,
Ken
-Original Message-
From: Ken Robinson
Sent: Wednesday, January 08, 2003 11:05 AM
To: 'Gavin King'; [EMAIL PROTECTED]
Subject: RE: [Hibernate] Problem with Connection Pool Timeouts
I updated to latest CVS to take advantage of
are still valid? I'm not familiar
with the workings of DBCP, and the documentation on their
site is certainly less than optimal.
-Original Message-
From: Gavin King [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 07, 2003 3:42 PM
To: Ken Robinson; [EMAIL PROTECTED]
Subject: RE: [Hibe
That would be the easy way wouldn't it :)
-Original Message-
From: Gavin King [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 07, 2003 3:42 PM
To: Ken Robinson; [EMAIL PROTECTED]
Subject: RE: [Hibernate] Problem with Connection Pool Timeouts
Hi all,
I'm running into an issue where my pooled connections are timing out. I've
tried both the Hibernate default pool as well as DBCP. Digging a little
deeper, I see that when Hibernate creates it's DBCP pool via a
PoolableConnectionFactory, it doesn't specify a validation query.
As I see
> Really? I just downloaded the 1.2b2 jars and there
> is an
> xdoclet-module-hibernate-1.2b2.jar file. It appears
> to be doing something
> (but not functioning, still need to dig).
Well, they were released too. I do not know much about
maven, but from ant everything works fine
regards,
==
--- Matt Raible <[EMAIL PROTECTED]> wrote:
> I got it to work by looking at your example
> Konstantin. Thanks!
>
> Now I'm having a problem where I want to set a
> unique contraint on name
> and userId in my resume table. Following
> Konstantin's example, I have
> my one-to-many relationship in
---Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Konstantin Priblouda
> Sent: Sunday, December 22, 2002 7:00 AM
> To: Matt Raible
> Cc: hibernate-devel
> Subject: Re: [Hibernate] Problem using Xdoclet to generate
> relationships [newbi
--- Matt Raible <[EMAIL PROTECTED]> wrote:
> I'm a rookie at using Hibernate, so please bear with
> me.
>
> I have User object that has a one-to-many mapping to
> a Resume object. I
> am getting the exception below when trying to
> persist the resume.
>
> I believe I might be doing something wr
Title: Problem using Xdoclet to generate relationships [newbie]
I'm a rookie at using Hibernate, so please bear with me.
I have User object that has a one-to-many mapping to a Resume object. I am getting the exception below when trying to persist the resume.
I believe I might be doing som
irected to the user forum, where
there
will
be other JBoss users who can assist you.
Gavin
-Original Message-From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Sent: Monday, 16 December 2002 9:30 PMTo: [EMAIL PROTECTED]Subject:
[Hibernate] Postgres/JBoss/Hibernate problem
I am using JBoss 3.2.0-beta-2, Postgres 7.2 and JDK 1.3.1 as
well as hibernate 1.2.
I am having difficulty committing any changes that I make because I get
error message saying: "java.sql.SQLException: You cannot commit with
autocommit set!"
bit of code:
[java]
Context ctx = new Init
A set of strings isn't an association...
So I'm still confused why cascade() is called.
- Original Message -
From: "Mark Woon" <[EMAIL PROTECTED]>
To: "Gavin King" <[EMAIL PROTECTED]>
Sent: Wednesday, September 25, 2002 10:56 PM
Subject: Re: [
"Mark Woon" <[EMAIL PROTECTED]>
To: "Hibernate Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 25, 2002 5:03 PM
Subject: [Hibernate] Problem with element
>
> I'm getting this with both 1.1 and what's currently in CVS. I'm g
I'm getting this with both 1.1 and what's currently in CVS. I'm getting
an NPE at
cirrus.hibernate.helpers.ReflectHelper.get(ReflectHelper.java:169)
because target is null.
My mapping looks like this:
All I'm doing is:
Foo f = new Foo();
f.setId("I
86 matches
Mail list logo