You can subscribe to this list here.
2002 |
Jan
(2) |
Feb
(157) |
Mar
(111) |
Apr
(61) |
May
(68) |
Jun
(45) |
Jul
(101) |
Aug
(132) |
Sep
(148) |
Oct
(227) |
Nov
(141) |
Dec
(285) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(518) |
Feb
(462) |
Mar
(390) |
Apr
(488) |
May
(321) |
Jun
(336) |
Jul
(268) |
Aug
(374) |
Sep
(211) |
Oct
(246) |
Nov
(239) |
Dec
(173) |
2004 |
Jan
(110) |
Feb
(131) |
Mar
(85) |
Apr
(120) |
May
(82) |
Jun
(101) |
Jul
(54) |
Aug
(65) |
Sep
(94) |
Oct
(51) |
Nov
(56) |
Dec
(168) |
2005 |
Jan
(146) |
Feb
(98) |
Mar
(75) |
Apr
(118) |
May
(85) |
Jun
(75) |
Jul
(44) |
Aug
(94) |
Sep
(70) |
Oct
(84) |
Nov
(115) |
Dec
(52) |
2006 |
Jan
(113) |
Feb
(83) |
Mar
(217) |
Apr
(158) |
May
(219) |
Jun
(218) |
Jul
(189) |
Aug
(39) |
Sep
(3) |
Oct
(7) |
Nov
(4) |
Dec
(2) |
2007 |
Jan
|
Feb
(2) |
Mar
(7) |
Apr
(3) |
May
(3) |
Jun
(8) |
Jul
(1) |
Aug
(1) |
Sep
|
Oct
(4) |
Nov
(7) |
Dec
|
2008 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2009 |
Jan
(6) |
Feb
|
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(1) |
Jul
(10) |
Aug
|
Sep
(1) |
Oct
(1) |
Nov
|
Dec
(3) |
2010 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Gavin K. <Gav...@ex...> - 2002-12-21 00:57:28
|
>=20 > Here's the SQL that Hibernate is generating for me: >=20 > [junit] Hibernate: SELECT user.user_id as user_id,=20 > user.changed_by as changed_by, user.created_by as created_by,=20 > user.dt_changed as dt_changed, user.dt_created as dt_created,=20 > user.headend_id as headend_id, user.mso_id as mso_id FROM=20 > user_sys_access user WHERE (user.user_id=3D? ) >=20 > And it should be using "user_sys_access" rather than "user". Nope! Look carefully at the generated SQL. It is correct! It defines an alias "user" for the table user_sys_access. That SQL would execute perfectly on Oracle, except for the fact that "user" is a reserved word. So you need to use a different alias in the HQL. eg: from u in class User where u.username =3D ? ("u" is not a reserved word) > I tried changing it to just load the record based on the Id (no OQL): >=20 > user =3D (User) ses.load(User.class, userId); >=20 > And I get an invalid column name error on User0.user_id. Is=20 > it possible to get rid of the User0 prefix that's causing=20 > these problems? Attached is my User.hbm.xml. >=20 > [junit] Hibernate: SELECT User0.user_id AS user_id,=20 > User0.changed_by as changed_by, User0.created_by as=20 > created_by, User0.dt_changed as dt_changed, User0.dt_created=20 > as dt_created, User0.headend_id as headend_id, User0.mso_id=20 > as mso_id FROM user_sys_access User0 WHERE User0.user_id =3D ? I don't understand how this could possibly not execute on Orace! Are you sure there is a column in the table named "user_id"?? Is User0 a reserved word for some bizzare reason??? ********** CAUTION - Disclaimer ********** This message may contain privileged and confidential information. If you are not the intended recipient of this message (or responsible for delivery of the message to such person) you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error, you should destroy it and kindly notify the sender by reply e-mail. Please advise immediately if you or your employer do not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Expert Information Services Pty Ltd ("The Company") shall be understood as neither given nor endorsed by it. The Company advises that this e-mail and any attached files should be scanned to detect viruses. The Company accepts no liability for loss or damage (whether caused by negligence or not) resulting from the use of any attached files. **EIS******** End of Disclaimer ********** |
From: Christian B. <chr...@bl...> - 2002-12-21 00:55:24
|
On 21 Dec (11:48), Gavin King wrote: > LOL :)) > > I'm not actually sure that there are any commonly accepted > names for this pattern. The Hibernate Session is *almost* > similar to UnitOfWork except for the fact that it is _not_, > actually, an atomic unit of work. Neither is it quite like > the ODMG Database or JDO PersistenceManager which, by their > names, imply a long-lived, singleton-style object. When I had a first look at the JDO API, I really liked PersistenceManagerFactory PersistenceManager Why not use the good things from JDO? :) -- Christian Bauer tu...@in... |
From: Matt R. <mat...@ca...> - 2002-12-21 00:48:49
|
Here's the SQL that Hibernate is generating for me: [junit] Hibernate: SELECT user.user_id as user_id, user.changed_by as changed_by, user.created_by as created_by, user.dt_changed as dt_changed, user.dt_created as dt_created, user.headend_id as headend_id, user.mso_id as mso_id FROM user_sys_access user WHERE (user.user_id=? ) And it should be using "user_sys_access" rather than "user". I tried changing it to just load the record based on the Id (no OQL): user = (User) ses.load(User.class, userId); And I get an invalid column name error on User0.user_id. Is it possible to get rid of the User0 prefix that's causing these problems? Attached is my User.hbm.xml. [junit] Hibernate: SELECT User0.user_id AS user_id, User0.changed_by as changed_by, User0.created_by as created_by, User0.dt_changed as dt_changed, User0.dt_created as dt_created, User0.headend_id as headend_id, User0.mso_id as mso_id FROM user_sys_access User0 WHERE User0.user_id = ? Thanks, Matt On 12/20/02 4:49 PM, "Gavin King" <Gav...@ex...> wrote: > set > > hiberante.show_sql=true > > or put log4j.properties in the classpath > >> -----Original Message----- >> From: Raible, Matt [mailto:Mat...@ca...] >> Sent: Saturday, 21 December 2002 10:34 AM >> To: hib...@li... >> Subject: RE: [Hibernate] Oracle error >> >> >> I changed it to use this error and I'm still getting the same >> error. I'm guessing that my table name is irrelevant as long >> as it's in the User.hbm.xml file. >> >> Is there anyway to turn on debugging so I can see the SQL being sent? >> >> Thanks, >> >> Matt >> >> -----Original Message----- >> From: Gavin King [mailto:Gav...@ex...] >> Sent: Friday, December 20, 2002 3:57 PM >> To: Raible, Matt >> Cc: hib...@li... >> Subject: RE: [Hibernate] Oracle error >> >> >> Correct QL syntax is: >> >> from user in class >> com.cable.comcast.dmc.itd.cct.persistence.User >> where user.username=? >> >> :) >> >>> -----Original Message----- >>> From: Matt Raible [mailto:mat...@ca...] >>> Sent: Saturday, 21 December 2002 6:21 AM >>> To: hib...@li... >>> Subject: [Hibernate] Oracle error >>> >>> >>> I am trying to use Hibernate to connect to Oracle. I was >>> using MySQL - where everything worked. All I've changed (so >>> far) was the tablename from "user" to "cct_user". Now I'm >>> getting the following error: >>> >>> [junit] Testcase: >>> testGetUser(com.cable.comcast.dmc.itd.cct.persistence.Applicat >>> ionDAOHibernat >>> eTest): Caused an ERROR >>> [junit] java.sql.SQLException: ORA-00923: FROM keyword >>> not found where expected >>> >>> [junit] com.cable.comcast.dmc.itd.cct.persistence.DAOException: >>> java.sql.SQLException: ORA-00923: FROM keyword not found >>> where expected >>> >>> >>> I'm guessing there's something wrong with this code: >>> >>> List users = (List) ses.find("from user in class >>> com.cable.comcast.dmc.itd.cct.persistence.User where >>> username=?", name, Hibernate.STRING); >>> >>> Thanks, >>> >>> Matt >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.NET email is sponsored by: The Best Geek Holiday >>> Gifts! Time is running out! Thinkgeek.com has the coolest gifts for >>> your favorite geek. Let your fingers do the typing. Visit Now. >>> T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >>> _______________________________________________ >>> hibernate-devel mailing list hib...@li... >>> https://lists.sourceforge.net/lists/listinfo/hibernate-devel >>> >> >> >> ********** CAUTION - Disclaimer ********** >> This message may contain privileged and confidential >> information. If you are not the intended recipient of this >> message (or responsible for delivery of the message to >> such person) you are hereby notified that any use, >> dissemination, distribution or reproduction of this message >> is prohibited. If you have received this message in error, >> you should destroy it and kindly notify the sender by reply >> e-mail. Please advise immediately if you or your employer >> do not consent to Internet e-mail for messages of this kind. >> Opinions, conclusions and other information in this >> message that do not relate to the official business of >> Expert Information Services Pty Ltd ("The Company") >> shall be understood as neither given nor endorsed by it. >> >> The Company advises that this e-mail and any attached >> files should be scanned to detect viruses. The Company >> accepts no liability for loss or damage (whether caused >> by negligence or not) resulting from the use of any >> attached files. >> **EIS******** End of Disclaimer ********** >> >> >> >> ------------------------------------------------------- >> This SF.NET email is sponsored by: The Best Geek Holiday Gifts! >> Time is running out! Thinkgeek.com has the coolest gifts for >> your favorite geek. Let your fingers do the typing. Visit Now. >> T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >> _______________________________________________ >> hibernate-devel mailing list >> hib...@li... >> https://lists.sourceforge.net/lists/listinfo/hibernate-devel >> > |
From: Gavin K. <Gav...@ex...> - 2002-12-21 00:48:42
|
LOL :)) I'm not actually sure that there are any commonly accepted=20 names for this pattern. The Hibernate Session is *almost* similar to UnitOfWork except for the fact that it is _not_, actually, an atomic unit of work. Neither is it quite like the ODMG Database or JDO PersistenceManager which, by their names, imply a long-lived, singleton-style object. > -----Original Message----- > From: Christian Bauer [mailto:chr...@bl...]=20 > Sent: Saturday, 21 December 2002 11:33 AM > To: hib...@li... > Subject: Re: [Hibernate] Road Map >=20 >=20 > On 21 Dec (11:15), Gavin King wrote: >=20 > > I suspect that many people would be tempted to vote for (2). But is=20 > > there really *that* much value in that for the users? The=20 > interfaces=20 > > themselves arent changing, so its a simple search/replace=20 > followed be=20 > > recompile. >=20 > Maybe this recommendation is a bit unpopular:=20 >=20 > Get rid of the name "Session"! I spent the last three days=20 > implementing lazy loading in a clean separated=20 > Three-Tier-Architecture and it's driving me crazy. Whenever I=20 > read the documentation, I also had this 100 milliseconds=20 > think time when I hit the word "Session" or "Transaction"=20 > until I realized that the statement was about the Hibernate=20 > thing, not about the _concepts_... >=20 > Well, I have to manage two layers of Session Beans (stateful=20 > and stateless), a HttpSession containing a UserSession and=20 > some other stuff named similar. My code is clean, but the=20 > next developer looking at this stuff will have a hard time=20 > understanding why there's another "Session" in the=20 > Persistence Layer that uses UserSession to store its=20 > disconnected state and gets this one from the SessionContext=20 > of the stateless SessionBean Business Facade. And this was=20 > only have the system up from the bottom, there are some other=20 > "Sessions" in the top layer. >=20 > Ok, it's not that serious, but I feel alot better already ;) >=20 > --=20 > Christian Bauer > tu...@in... >=20 >=20 > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday=20 > Gifts! Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > hibernate-devel mailing list hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel >=20 ********** CAUTION - Disclaimer ********** This message may contain privileged and confidential information. If you are not the intended recipient of this message (or responsible for delivery of the message to such person) you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error, you should destroy it and kindly notify the sender by reply e-mail. Please advise immediately if you or your employer do not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Expert Information Services Pty Ltd ("The Company") shall be understood as neither given nor endorsed by it. The Company advises that this e-mail and any attached files should be scanned to detect viruses. The Company accepts no liability for loss or damage (whether caused by negligence or not) resulting from the use of any attached files. **EIS******** End of Disclaimer ********** |
From: Mark W. <mor...@SM...> - 2002-12-21 00:41:15
|
Gavin King wrote: >Future plans: > >Next release: 1.2.1 >=================== >* various bugfixes >* full support for Clob and Blob > How are you planning on supporting this? Is there going to be some internal changes in Hibernate to support them, or are you just going to add new Blob and Clob types? >I see three possibilities here: >(1) make a clean break - most applications will be portable > to 1.2 with nothing more than a few simple text search/ > replace (s/cirrus.hibernate/net.sf.hibernate). This will > mean less code to manage / distribute. > > +1 -Mark |
From: Christian B. <chr...@bl...> - 2002-12-21 00:34:04
|
On 21 Dec (11:15), Gavin King wrote: > I suspect that many people would be tempted to vote for (2). > But is there really *that* much value in that for the users? > The interfaces themselves arent changing, so its a simple > search/replace followed be recompile. Maybe this recommendation is a bit unpopular: Get rid of the name "Session"! I spent the last three days implementing lazy loading in a clean separated Three-Tier-Architecture and it's driving me crazy. Whenever I read the documentation, I also had this 100 milliseconds think time when I hit the word "Session" or "Transaction" until I realized that the statement was about the Hibernate thing, not about the _concepts_... Well, I have to manage two layers of Session Beans (stateful and stateless), a HttpSession containing a UserSession and some other stuff named similar. My code is clean, but the next developer looking at this stuff will have a hard time understanding why there's another "Session" in the Persistence Layer that uses UserSession to store its disconnected state and gets this one from the SessionContext of the stateless SessionBean Business Facade. And this was only have the system up from the bottom, there are some other "Sessions" in the top layer. Ok, it's not that serious, but I feel alot better already ;) -- Christian Bauer tu...@in... |
From: Gavin K. <Gav...@ex...> - 2002-12-21 00:15:34
|
Future plans: Next release: 1.2.1 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D * various bugfixes * full support for Clob and Blob * FlushMode API + deprecation of suspend/resumeFlushes * Improved logging of bind variables, etc. 1.2.1 is almost ready to go. Should be released in one=20 to two weeks. This will be a very stable platform for=20 development and we should continue to fix any bugs in=20 the 1.2 branch concurrently with 2.0 development. Hibernate 2.0 beta =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D * create a new module in CVS with improved directory=20 structure * rename packages to net.sf.hibernate * replace existing configuration mechanisms=20 with an interface that unifies the functionality of HibernateService, (the misnamed) Datastore, Hibernate.configure() and Configuration. * query language enhancements, starting with: - OUTER JOIN, FULL JOIN, etc - AS instead of IN, IN CLASS - select new Foo(bar.name, bar.count) from ..... * JCA implementation * removal of support for toplevel collections / subcollections That list of features (for 2.0) should be considered a=20 proposal. If anyone thinks there are more urgent things than those listed (ie. more urgent for the user base as a whole, rather than for themseleves personally), we can vote on it. Something I would like everyone to consider and vote on=20 at this stage is: Should 2.0 be 100% backward compatible with 1.2? Because almost everything is defined by interfaces (and=20 because I don't envisage any change in semantics for any operations of the core interfaces), we *could*=20 continue to support the existing interfaces alongside=20 the "new" net.sf.hibernate.* interfaces. However, I am quite keen to actually rip out a lot of code relating to support for toplevel collections and the various old configuration mechanisms. I see three possibilities here: (1) make a clean break - most applications will be portable to 1.2 with nothing more than a few simple text search/ replace (s/cirrus.hibernate/net.sf.hibernate). This will mean less code to manage / distribute. (2) continue to support certain core interfaces: - Session - SessionFactory - UserType - Hibernate - Query - ScrollableResults - ??? (3) Full backward compatibility Lets discuss / vote on this now, even though we won't be=20 starting work on 2.0 for a few weeks now. People voting for (3) will be assumed to be volunteering for some of the=20 extra work involved in implementing / maintaining this ;) I suspect that many people would be tempted to vote for (2). But is there really *that* much value in that for the users? The interfaces themselves arent changing, so its a simple search/replace followed be recompile. peace Gavin ********** CAUTION - Disclaimer ********** This message may contain privileged and confidential information. If you are not the intended recipient of this message (or responsible for delivery of the message to such person) you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error, you should destroy it and kindly notify the sender by reply e-mail. Please advise immediately if you or your employer do not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Expert Information Services Pty Ltd ("The Company") shall be understood as neither given nor endorsed by it. The Company advises that this e-mail and any attached files should be scanned to detect viruses. The Company accepts no liability for loss or damage (whether caused by negligence or not) resulting from the use of any attached files. **EIS******** End of Disclaimer ********** |
From: Gavin K. <Gav...@ex...> - 2002-12-20 23:49:14
|
set=20 hiberante.show_sql=3Dtrue or put log4j.properties in the classpath > -----Original Message----- > From: Raible, Matt [mailto:Mat...@ca...]=20 > Sent: Saturday, 21 December 2002 10:34 AM > To: hib...@li... > Subject: RE: [Hibernate] Oracle error >=20 >=20 > I changed it to use this error and I'm still getting the same=20 > error. I'm guessing that my table name is irrelevant as long=20 > as it's in the User.hbm.xml file. =20 >=20 > Is there anyway to turn on debugging so I can see the SQL being sent? >=20 > Thanks, >=20 > Matt >=20 > -----Original Message----- > From: Gavin King [mailto:Gav...@ex...] > Sent: Friday, December 20, 2002 3:57 PM > To: Raible, Matt > Cc: hib...@li... > Subject: RE: [Hibernate] Oracle error >=20 >=20 > Correct QL syntax is: >=20 > from user in class=20 > com.cable.comcast.dmc.itd.cct.persistence.User=20 > where user.username=3D? >=20 > :) >=20 > > -----Original Message----- > > From: Matt Raible [mailto:mat...@ca...] > > Sent: Saturday, 21 December 2002 6:21 AM > > To: hib...@li... > > Subject: [Hibernate] Oracle error > >=20 > >=20 > > I am trying to use Hibernate to connect to Oracle. I was > > using MySQL - where everything worked. All I've changed (so=20 > > far) was the tablename from "user" to "cct_user". Now I'm=20 > > getting the following error: > >=20 > > [junit] Testcase: > > testGetUser(com.cable.comcast.dmc.itd.cct.persistence.Applicat > > ionDAOHibernat > > eTest): Caused an ERROR > > [junit] java.sql.SQLException: ORA-00923: FROM keyword=20 > > not found where expected > >=20 > > [junit] com.cable.comcast.dmc.itd.cct.persistence.DAOException: > > java.sql.SQLException: ORA-00923: FROM keyword not found > > where expected > >=20 > >=20 > > I'm guessing there's something wrong with this code: > >=20 > > List users =3D (List) ses.find("from user in class > > com.cable.comcast.dmc.itd.cct.persistence.User where=20 > > username=3D?", name, Hibernate.STRING); > >=20 > > Thanks, > >=20 > > Matt > >=20 > >=20 > >=20 > > ------------------------------------------------------- > > This SF.NET email is sponsored by: The Best Geek Holiday > > Gifts! Time is running out! Thinkgeek.com has the coolest gifts for > > your favorite geek. Let your fingers do the typing. Visit Now. > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > _______________________________________________ > > hibernate-devel mailing list hib...@li... > > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > >=20 >=20 >=20 > ********** CAUTION - Disclaimer ********** > This message may contain privileged and confidential > information. If you are not the intended recipient of this > message (or responsible for delivery of the message to > such person) you are hereby notified that any use, > dissemination, distribution or reproduction of this message > is prohibited. If you have received this message in error, > you should destroy it and kindly notify the sender by reply > e-mail. Please advise immediately if you or your employer > do not consent to Internet e-mail for messages of this kind. > Opinions, conclusions and other information in this > message that do not relate to the official business of > Expert Information Services Pty Ltd ("The Company") > shall be understood as neither given nor endorsed by it. >=20 > The Company advises that this e-mail and any attached > files should be scanned to detect viruses. The Company > accepts no liability for loss or damage (whether caused > by negligence or not) resulting from the use of any > attached files. > **EIS******** End of Disclaimer ********** >=20 >=20 >=20 > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > hibernate-devel mailing list > hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel >=20 |
From: Raible, M. <Mat...@ca...> - 2002-12-20 23:34:05
|
I changed it to use this error and I'm still getting the same error. I'm guessing that my table name is irrelevant as long as it's in the User.hbm.xml file. Is there anyway to turn on debugging so I can see the SQL being sent? Thanks, Matt -----Original Message----- From: Gavin King [mailto:Gav...@ex...] Sent: Friday, December 20, 2002 3:57 PM To: Raible, Matt Cc: hib...@li... Subject: RE: [Hibernate] Oracle error Correct QL syntax is: from user in class com.cable.comcast.dmc.itd.cct.persistence.User where user.username=? :) > -----Original Message----- > From: Matt Raible [mailto:mat...@ca...] > Sent: Saturday, 21 December 2002 6:21 AM > To: hib...@li... > Subject: [Hibernate] Oracle error > > > I am trying to use Hibernate to connect to Oracle. I was > using MySQL - where everything worked. All I've changed (so > far) was the tablename from "user" to "cct_user". Now I'm > getting the following error: > > [junit] Testcase: > testGetUser(com.cable.comcast.dmc.itd.cct.persistence.Applicat > ionDAOHibernat > eTest): Caused an ERROR > [junit] java.sql.SQLException: ORA-00923: FROM keyword > not found where expected > > [junit] com.cable.comcast.dmc.itd.cct.persistence.DAOException: > java.sql.SQLException: ORA-00923: FROM keyword not found > where expected > > > I'm guessing there's something wrong with this code: > > List users = (List) ses.find("from user in class > com.cable.comcast.dmc.itd.cct.persistence.User where > username=?", name, Hibernate.STRING); > > Thanks, > > Matt > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday > Gifts! Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > hibernate-devel mailing list hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > ********** CAUTION - Disclaimer ********** This message may contain privileged and confidential information. If you are not the intended recipient of this message (or responsible for delivery of the message to such person) you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error, you should destroy it and kindly notify the sender by reply e-mail. Please advise immediately if you or your employer do not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Expert Information Services Pty Ltd ("The Company") shall be understood as neither given nor endorsed by it. The Company advises that this e-mail and any attached files should be scanned to detect viruses. The Company accepts no liability for loss or damage (whether caused by negligence or not) resulting from the use of any attached files. **EIS******** End of Disclaimer ********** |
From: Gavin K. <Gav...@ex...> - 2002-12-20 23:00:18
|
Sorry, I don't know quite what you're referring to..... > -----Original Message----- > From: cheeser [mailto:hib...@ch...]=20 > Sent: Saturday, 21 December 2002 5:56 AM > To: hib...@li... > Subject: [Hibernate] multiple beans in one table >=20 >=20 > Was this fixed since 1.2? I was just about to submit a=20 > patch, but it looks=20 > like it's already been done. >=20 >=20 > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday=20 > Gifts! Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > hibernate-devel mailing list hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel >=20 ********** CAUTION - Disclaimer ********** This message may contain privileged and confidential information. If you are not the intended recipient of this message (or responsible for delivery of the message to such person) you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error, you should destroy it and kindly notify the sender by reply e-mail. Please advise immediately if you or your employer do not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Expert Information Services Pty Ltd ("The Company") shall be understood as neither given nor endorsed by it. The Company advises that this e-mail and any attached files should be scanned to detect viruses. The Company accepts no liability for loss or damage (whether caused by negligence or not) resulting from the use of any attached files. **EIS******** End of Disclaimer ********** |
From: Gavin K. <Gav...@ex...> - 2002-12-20 22:59:23
|
I meant to say a big thanks to Joel for his work on this.=20 Actually I intend to remove the Tools module fairly soon,=20 since the XDoclet CVS is now considered the home of=20 Hibernate XDoclet. Gavin -----Original Message----- From: Joel Rosi-Schwartz [mailto:Joe...@Et...]=20 Sent: Saturday, 21 December 2002 9:08 AM To: Max Rydahl Andersen Cc: Gavin King; hibernate list Subject: Re: [Hibernate] Enhancements to the Hibernate Xdoclet subtasks Actually the Hibernate XDoclet module has moved under the umbrella of the XDocklet project proper. Until the next XDoclet release, it is only available by downloading all of XDockle from cvs on Source Forge and building it. I suppose that if that was really inconvenient, one could always download the one from the Hibernate Tools cvs tree, but that no longer has the latest modifications. - joel Max Rydahl Andersen wrote: Gavin, Did anything ever happen concerning moving the source into an src directory ? /max ----- Original Message ----- From: "Gavin King" <ga...@ap...> To: "Max Rydahl Andersen" <ma...@eo...> Cc: "hibernate list" <hib...@li...> Sent: Friday, November 29, 2002 6:36 AM Subject: Re: [Hibernate] Enhancements to the Hibernate Xdoclet subtasks =20 Yeah sure. I will make a support request to SourceForge staff.... ----- Original Message ----- From: "Max Rydahl Andersen" <ma...@eo...> To: "Gavin King" <ga...@ap...>; "Joel Rosi-Schwartz" <Joe...@Et...> Cc: "hibernate list" <hib...@li...> Sent: Friday, November 29, 2002 1:25 AM Subject: Re: [Hibernate] Enhancements to the Hibernate Xdoclet subtasks =20 And know when we are on an related subject :) Could we soon be introducing a src directory instead of having cirrus in =20 the =20 root of the project ? It would make life much easier for me and my eclipse :) /max ----- Original Message ----- From: "Gavin King" <ga...@ap...> To: "Joel Rosi-Schwartz" <Joe...@Et...> Cc: "hibernate list" <hib...@li...> Sent: Wednesday, November 27, 2002 3:54 PM Subject: Re: [Hibernate] Enhancements to the Hibernate Xdoclet subtasks =20 I'm not too keen on adding .project + .classpath - my .classpath has hardcoded pathnames to various JDBC drivers and it would be a real =20 hassle =20 to =20 not accidently check those in each time. (hibernate.properties is bad enough; up to version 1.91 already.) Anyway, I use Eclipse very =20 smoothly =20 + =20 successfully without them there. Note that I use cygwin for CVS access because I just hate the eclipse CVS client. =20 If this is not a problem, then I would also like an okay to add =20 Eclipse =20 project support. It only adds two files, .classpath and .project, =20 and =20 these are not intrusive to anyone who is not using Eclipse. In fact =20 if =20 you wanted to give me commit on all of the modules, I would be happy =20 to =20 set up and maintain Eclipse project support across the board. For =20 people =20 using Eclispe this makes it *much* easier to pull code out of cvs =20 and =20 be =20 up and running immediately. =20 ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ hibernate-devel mailing list hib...@li... https://lists.sourceforge.net/lists/listinfo/hibernate-devel =20 ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ hibernate-devel mailing list hib...@li... https://lists.sourceforge.net/lists/listinfo/hibernate-devel =20 =20 ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ hibernate-devel mailing list hib...@li... https://lists.sourceforge.net/lists/listinfo/hibernate-devel =20 ********** CAUTION - Disclaimer ********** This message may contain privileged and confidential information. If you are not the intended recipient of this message (or responsible for delivery of the message to such person) you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error, you should destroy it and kindly notify the sender by reply e-mail. Please advise immediately if you or your employer do not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Expert Information Services Pty Ltd ("The Company") shall be understood as neither given nor endorsed by it. The Company advises that this e-mail and any attached files should be scanned to detect viruses. The Company accepts no liability for loss or damage (whether caused by negligence or not) resulting from the use of any attached files. **EIS******** End of Disclaimer ********** |
From: Gavin K. <Gav...@ex...> - 2002-12-20 22:57:20
|
Correct QL syntax is: from user in class=20 com.cable.comcast.dmc.itd.cct.persistence.User=20 where user.username=3D? :) > -----Original Message----- > From: Matt Raible [mailto:mat...@ca...]=20 > Sent: Saturday, 21 December 2002 6:21 AM > To: hib...@li... > Subject: [Hibernate] Oracle error >=20 >=20 > I am trying to use Hibernate to connect to Oracle. I was=20 > using MySQL - where everything worked. All I've changed (so=20 > far) was the tablename from "user" to "cct_user". Now I'm=20 > getting the following error: >=20 > [junit] Testcase:=20 > testGetUser(com.cable.comcast.dmc.itd.cct.persistence.Applicat > ionDAOHibernat > eTest): Caused an ERROR > [junit] java.sql.SQLException: ORA-00923: FROM keyword=20 > not found where expected >=20 > [junit] com.cable.comcast.dmc.itd.cct.persistence.DAOException: > java.sql.SQLException: ORA-00923: FROM keyword not found=20 > where expected >=20 >=20 > I'm guessing there's something wrong with this code: >=20 > List users =3D (List) ses.find("from user in class=20 > com.cable.comcast.dmc.itd.cct.persistence.User where=20 > username=3D?", name, Hibernate.STRING); >=20 > Thanks, >=20 > Matt >=20 >=20 >=20 > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday=20 > Gifts! Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > hibernate-devel mailing list hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel >=20 ********** CAUTION - Disclaimer ********** This message may contain privileged and confidential information. If you are not the intended recipient of this message (or responsible for delivery of the message to such person) you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error, you should destroy it and kindly notify the sender by reply e-mail. Please advise immediately if you or your employer do not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Expert Information Services Pty Ltd ("The Company") shall be understood as neither given nor endorsed by it. The Company advises that this e-mail and any attached files should be scanned to detect viruses. The Company accepts no liability for loss or damage (whether caused by negligence or not) resulting from the use of any attached files. **EIS******** End of Disclaimer ********** |
From: Gavin K. <Gav...@ex...> - 2002-12-20 22:55:09
|
It will happen immediately 1.2.1 is out the door. See my next post. > -----Original Message----- > From: Max Rydahl Andersen [mailto:ma...@eo...]=20 > Sent: Saturday, 21 December 2002 6:19 AM > To: Gavin King > Cc: hibernate list > Subject: Re: [Hibernate] Enhancements to the Hibernate=20 > Xdoclet subtasks >=20 >=20 > Gavin, >=20 > Did anything ever happen concerning moving the source into an=20 > src directory ? >=20 > /max >=20 > ----- Original Message ----- > From: "Gavin King" <ga...@ap...> > To: "Max Rydahl Andersen" <ma...@eo...> > Cc: "hibernate list" <hib...@li...> > Sent: Friday, November 29, 2002 6:36 AM > Subject: Re: [Hibernate] Enhancements to the Hibernate=20 > Xdoclet subtasks >=20 >=20 > > Yeah sure. I will make a support request to SourceForge staff.... > > > > ----- Original Message ----- > > From: "Max Rydahl Andersen" <ma...@eo...> > > To: "Gavin King" <ga...@ap...>; "Joel Rosi-Schwartz"=20 > > <Joe...@Et...> > > Cc: "hibernate list" <hib...@li...> > > Sent: Friday, November 29, 2002 1:25 AM > > Subject: Re: [Hibernate] Enhancements to the Hibernate Xdoclet=20 > > subtasks > > > > > > > And know when we are on an related subject :) > > > > > > Could we soon be introducing a src directory instead of having=20 > > > cirrus in > > the > > > root of the project ? > > > It would make life much easier for me and my eclipse :) > > > > > > /max > > > > > > ----- Original Message ----- > > > From: "Gavin King" <ga...@ap...> > > > To: "Joel Rosi-Schwartz" <Joe...@Et...> > > > Cc: "hibernate list" <hib...@li...> > > > Sent: Wednesday, November 27, 2002 3:54 PM > > > Subject: Re: [Hibernate] Enhancements to the Hibernate Xdoclet=20 > > > subtasks > > > > > > > > > > > > > > I'm not too keen on adding .project + .classpath - my=20 > .classpath=20 > > > > has hardcoded pathnames to various JDBC drivers and it=20 > would be a=20 > > > > real > > hassle > > > to > > > > not accidently check those in each time.=20 > (hibernate.properties is=20 > > > > bad enough; up to version 1.91 already.) Anyway, I use Eclipse=20 > > > > very > smoothly > > + > > > > successfully without them there. Note that I use cygwin for CVS=20 > > > > access because I just hate the eclipse CVS client. > > > > > > > > > If this is not a problem, then I would also like an=20 > okay to add > > Eclipse > > > > > project support. It only adds two files, .classpath and=20 > > > > > .project, > and > > > > > these are not intrusive to anyone who is not using=20 > Eclipse. In=20 > > > > > fact > if > > > > > you wanted to give me commit on all of the modules, I=20 > would be=20 > > > > > happy > > to > > > > > set up and maintain Eclipse project support across the board.=20 > > > > > For > > people > > > > > using Eclispe this makes it *much* easier to pull code out of=20 > > > > > cvs > and > > be > > > > > up and running immediately. > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.net email is sponsored by: Get the new Palm Tungsten T=20 > > > > handheld. Power & Color in a compact size!=20 > > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > > > > _______________________________________________ > > > > hibernate-devel mailing list=20 > hib...@li... > > > > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Get the new Palm Tungsten T > > > handheld. Power & Color in a compact size! > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > > > _______________________________________________ > > > hibernate-devel mailing list > > > hib...@li... > > > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > > > > >=20 >=20 >=20 > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > hibernate-devel mailing list > hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel >=20 ********** CAUTION - Disclaimer ********** This message may contain privileged and confidential information. If you are not the intended recipient of this message (or responsible for delivery of the message to such person) you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error, you should destroy it and kindly notify the sender by reply e-mail. Please advise immediately if you or your employer do not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Expert Information Services Pty Ltd ("The Company") shall be understood as neither given nor endorsed by it. The Company advises that this e-mail and any attached files should be scanned to detect viruses. The Company accepts no liability for loss or damage (whether caused by negligence or not) resulting from the use of any attached files. **EIS******** End of Disclaimer ********** |
From: Joel Rosi-S. <Joe...@Et...> - 2002-12-20 22:08:21
|
Actually the Hibernate XDoclet module has moved under the umbrella of the XDocklet project proper. Until the next XDoclet release, it is only available by downloading all of XDockle from cvs on Source Forge and building it. I suppose that if that was really inconvenient, one could always download the one from the Hibernate Tools cvs tree, but that no longer has the latest modifications. - joel Max Rydahl Andersen wrote: >Gavin, > >Did anything ever happen concerning moving the source into an src directory >? > >/max > >----- Original Message ----- >From: "Gavin King" <ga...@ap...> >To: "Max Rydahl Andersen" <ma...@eo...> >Cc: "hibernate list" <hib...@li...> >Sent: Friday, November 29, 2002 6:36 AM >Subject: Re: [Hibernate] Enhancements to the Hibernate Xdoclet subtasks > > > > >>Yeah sure. I will make a support request to SourceForge staff.... >> >>----- Original Message ----- >>From: "Max Rydahl Andersen" <ma...@eo...> >>To: "Gavin King" <ga...@ap...>; "Joel Rosi-Schwartz" >><Joe...@Et...> >>Cc: "hibernate list" <hib...@li...> >>Sent: Friday, November 29, 2002 1:25 AM >>Subject: Re: [Hibernate] Enhancements to the Hibernate Xdoclet subtasks >> >> >> >> >>>And know when we are on an related subject :) >>> >>>Could we soon be introducing a src directory instead of having cirrus in >>> >>> >>the >> >> >>>root of the project ? >>>It would make life much easier for me and my eclipse :) >>> >>>/max >>> >>>----- Original Message ----- >>>From: "Gavin King" <ga...@ap...> >>>To: "Joel Rosi-Schwartz" <Joe...@Et...> >>>Cc: "hibernate list" <hib...@li...> >>>Sent: Wednesday, November 27, 2002 3:54 PM >>>Subject: Re: [Hibernate] Enhancements to the Hibernate Xdoclet subtasks >>> >>> >>> >>> >>>>I'm not too keen on adding .project + .classpath - my .classpath has >>>>hardcoded pathnames to various JDBC drivers and it would be a real >>>> >>>> >>hassle >> >> >>>to >>> >>> >>>>not accidently check those in each time. (hibernate.properties is bad >>>>enough; up to version 1.91 already.) Anyway, I use Eclipse very >>>> >>>> >smoothly > > >>+ >> >> >>>>successfully without them there. Note that I use cygwin for CVS access >>>>because I just hate the eclipse CVS client. >>>> >>>> >>>> >>>>>If this is not a problem, then I would also like an okay to add >>>>> >>>>> >>Eclipse >> >> >>>>>project support. It only adds two files, .classpath and .project, >>>>> >>>>> >and > > >>>>>these are not intrusive to anyone who is not using Eclipse. In fact >>>>> >>>>> >if > > >>>>>you wanted to give me commit on all of the modules, I would be happy >>>>> >>>>> >>to >> >> >>>>>set up and maintain Eclipse project support across the board. For >>>>> >>>>> >>people >> >> >>>>>using Eclispe this makes it *much* easier to pull code out of cvs >>>>> >>>>> >and > > >>be >> >> >>>>>up and running immediately. >>>>> >>>>> >>>> >>>> >>>>------------------------------------------------------- >>>>This SF.net email is sponsored by: Get the new Palm Tungsten T >>>>handheld. Power & Color in a compact size! >>>>http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en >>>>_______________________________________________ >>>>hibernate-devel mailing list >>>>hib...@li... >>>>https://lists.sourceforge.net/lists/listinfo/hibernate-devel >>>> >>>> >>>> >>> >>>------------------------------------------------------- >>>This SF.net email is sponsored by: Get the new Palm Tungsten T >>>handheld. Power & Color in a compact size! >>>http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en >>>_______________________________________________ >>>hibernate-devel mailing list >>>hib...@li... >>>https://lists.sourceforge.net/lists/listinfo/hibernate-devel >>> >>> >> >> > > > >------------------------------------------------------- >This SF.NET email is sponsored by: The Best Geek Holiday Gifts! >Time is running out! Thinkgeek.com has the coolest gifts for >your favorite geek. Let your fingers do the typing. Visit Now. >T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >_______________________________________________ >hibernate-devel mailing list >hib...@li... >https://lists.sourceforge.net/lists/listinfo/hibernate-devel > > > > |
From: Matt R. <mat...@ca...> - 2002-12-20 19:33:10
|
I am trying to use Hibernate to connect to Oracle. I was using MySQL - where everything worked. All I've changed (so far) was the tablename from "user" to "cct_user". Now I'm getting the following error: [junit] Testcase: testGetUser(com.cable.comcast.dmc.itd.cct.persistence.ApplicationDAOHibernat eTest): Caused an ERROR [junit] java.sql.SQLException: ORA-00923: FROM keyword not found where expected [junit] com.cable.comcast.dmc.itd.cct.persistence.DAOException: java.sql.SQLException: ORA-00923: FROM keyword not found where expected I'm guessing there's something wrong with this code: List users = (List) ses.find("from user in class com.cable.comcast.dmc.itd.cct.persistence.User where username=?", name, Hibernate.STRING); Thanks, Matt |
From: Max R. A. <ma...@eo...> - 2002-12-20 19:18:47
|
Gavin, Did anything ever happen concerning moving the source into an src directory ? /max ----- Original Message ----- From: "Gavin King" <ga...@ap...> To: "Max Rydahl Andersen" <ma...@eo...> Cc: "hibernate list" <hib...@li...> Sent: Friday, November 29, 2002 6:36 AM Subject: Re: [Hibernate] Enhancements to the Hibernate Xdoclet subtasks > Yeah sure. I will make a support request to SourceForge staff.... > > ----- Original Message ----- > From: "Max Rydahl Andersen" <ma...@eo...> > To: "Gavin King" <ga...@ap...>; "Joel Rosi-Schwartz" > <Joe...@Et...> > Cc: "hibernate list" <hib...@li...> > Sent: Friday, November 29, 2002 1:25 AM > Subject: Re: [Hibernate] Enhancements to the Hibernate Xdoclet subtasks > > > > And know when we are on an related subject :) > > > > Could we soon be introducing a src directory instead of having cirrus in > the > > root of the project ? > > It would make life much easier for me and my eclipse :) > > > > /max > > > > ----- Original Message ----- > > From: "Gavin King" <ga...@ap...> > > To: "Joel Rosi-Schwartz" <Joe...@Et...> > > Cc: "hibernate list" <hib...@li...> > > Sent: Wednesday, November 27, 2002 3:54 PM > > Subject: Re: [Hibernate] Enhancements to the Hibernate Xdoclet subtasks > > > > > > > > > > I'm not too keen on adding .project + .classpath - my .classpath has > > > hardcoded pathnames to various JDBC drivers and it would be a real > hassle > > to > > > not accidently check those in each time. (hibernate.properties is bad > > > enough; up to version 1.91 already.) Anyway, I use Eclipse very smoothly > + > > > successfully without them there. Note that I use cygwin for CVS access > > > because I just hate the eclipse CVS client. > > > > > > > If this is not a problem, then I would also like an okay to add > Eclipse > > > > project support. It only adds two files, .classpath and .project, and > > > > these are not intrusive to anyone who is not using Eclipse. In fact if > > > > you wanted to give me commit on all of the modules, I would be happy > to > > > > set up and maintain Eclipse project support across the board. For > people > > > > using Eclispe this makes it *much* easier to pull code out of cvs and > be > > > > up and running immediately. > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Get the new Palm Tungsten T > > > handheld. Power & Color in a compact size! > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > > > _______________________________________________ > > > hibernate-devel mailing list > > > hib...@li... > > > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Get the new Palm Tungsten T > > handheld. Power & Color in a compact size! > > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > > _______________________________________________ > > hibernate-devel mailing list > > hib...@li... > > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > > |
From: cheeser <hib...@ch...> - 2002-12-20 18:56:29
|
Was this fixed since 1.2? I was just about to submit a patch, but it loo= ks=20 like it's already been done. |
From: Schnitzer, J. <JSc...@ma...> - 2002-12-19 22:47:15
|
My $0.02 would be to eliminate it. It seems like a marginal feature at best (a scary confusing feature at worst) and if it makes the code simpler, get rid of it. =20 Jeff =20 =20 =20 -----Original Message----- From: Gavin King [mailto:Gav...@ex...]=20 Sent: Wednesday, December 18, 2002 1:50 AM To: hib...@li... Subject: [Hibernate] Are toplevel collections / subcollections a Bad Thing? =20 =20 I'm (again) considering deprecating toplevel collections and subcollections=20 in Hibernate 2.0. I was never completely happy with this feature after I implemented it, but it had taken so much effort to get it to work that I left it in.=20 The case against toplevel collections is:=20 * the relational model is broken - there is no foreign key constraint from=20 collection element row to the owning row=20 * subcollections complicate code in SessionImpl _significantly_=20 The case for keeping them is:=20 * they let you persist a Java "collection of collections"=20 * they let you have a single table / collection mapping that can be used by=20 different owning classes=20 * instances of a toplevel collection can be passed between different owners=20 (even between owners of a different class, potentially) without needing to=20 remove and recreate the collection rows=20 * they currently work and I havn't needed to touch the complicated code for=20 a long time now=20 So: Do people USE this feature?? Have people really actually found uses=20 for this stuff, or is it actually just making Hibernate harder to understand=20 for the first time? Even if it has been useful, is perhaps *still* undesirable,=20 because of concerns about data integrity? Perhaps we simply shouldn't=20 be encouraging this kind of relational model.....=20 I need advice on this.=20 Gavin=20 ********** CAUTION - Disclaimer ********** This message may contain privileged and confidential information. If you are not the intended recipient of this message (or responsible for delivery of the message to such person) you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error, you should destroy it and kindly notify the sender by reply e-mail. Please advise immediately if you or your employer do not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Expert Information Services Pty Ltd ("The Company") shall be understood as neither given nor endorsed by it. The Company advises that this e-mail and any attached files should be scanned to detect viruses. The Company accepts no liability for loss or damage (whether caused by negligence or not) resulting from the use of any attached files. **EIS******** End of Disclaimer ********** |
From: Gavin K. <Gav...@ex...> - 2002-12-19 22:04:07
|
No worries, its fixed... > -----Original Message----- > From: Ugo Cei [mailto:u....@cb...]=20 > Sent: Thursday, 19 December 2002 7:41 PM > To: Gavin King > Subject: Re: [Hibernate] Missing semicolons in generated schema file >=20 >=20 > Gavin King wrote: > > Woops, no, I didn't realise this.... (recent functionality, btw) > > would you submit a bug report and / or patch please. TIA. >=20 > I've just submitted a bug report. But don't expect a patch=20 > anytime soon,=20 > I've just started playing with Hibernate a couple of days ago and=20 > haven't even downloaded the source, yet. >=20 > Nice piece of work, BTW. >=20 > Ugo >=20 > --=20 > Ugo Cei - http://www.beblogging.com/blog/ >=20 >=20 ********** CAUTION - Disclaimer ********** This message may contain privileged and confidential information. If you are not the intended recipient of this message (or responsible for delivery of the message to such person) you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error, you should destroy it and kindly notify the sender by reply e-mail. Please advise immediately if you or your employer do not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Expert Information Services Pty Ltd ("The Company") shall be understood as neither given nor endorsed by it. The Company advises that this e-mail and any attached files should be scanned to detect viruses. The Company accepts no liability for loss or damage (whether caused by negligence or not) resulting from the use of any attached files. **EIS******** End of Disclaimer ********** |
From: Konstantin P. <kpr...@ya...> - 2002-12-19 13:58:40
|
Just forgot to say where to get it: http://www.pribluda.de/hibernate-test.tar.gz regards, ===== Konstantin Priblouda ( ko5tik ) Freelance Software developer < http://www.pribluda.de > < play java games -> http://www.yook.de > < render charts online -> http://www.pribluda.de/povray/ > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
From: Konstantin P. <kpr...@ya...> - 2002-12-19 13:35:16
|
Hi all, I compiled new ( and enhanced ) version of my demo for hibernate/xdoclet/jboss Now there are: - 3 Entites: address, customer, country - 1 : n relation ( customer has several addresses ) - relation address - country you will need current CVS version of xdoclet hibernate module to run this. Small documentation is ontained in README.txt regards, ===== Konstantin Priblouda ( ko5tik ) Freelance Software developer < http://www.pribluda.de > < play java games -> http://www.yook.de > < render charts online -> http://www.pribluda.de/povray/ > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
From: Max R. A. <ma...@eo...> - 2002-12-19 09:47:59
|
Should we implement this paradigm in the codegenerator ? (of course as an option) Maybe something like this: <property name="parent" class="eg.Parent"> <metaattribute name="CodeGen.genCompositeGetSet" value="true"/> </property> Where the codegen would generate something like the code below if "CodeGen.genCompositeGetSet" is set for the property and/or relationship. /max ----- Original Message ----- From: "Christian Bauer" <chr...@bl...> To: <hib...@li...> Sent: Thursday, December 19, 2002 10:31 AM Subject: Re: Bi-directional relationships (was Re: [Hibernate] Are toplevel collections / subcollections a Bad Thing?) > On 19 Dec (09:20), Jim Downing wrote: > > > Thanks - I'd used the advance in Tom's manual to do the mapping, but I > > was trying to maintain the relationship in my persistent objects > > (rather than making the client do it, as in the FAQ), which was > > probably the cause of my problems. > > Thats exactly what I'm doing: > > class Child { > > public setParent(Parent newParent) { > > // Remove myself from old Parent > if (this.parent != null) { > this.parent.getChildren().remove(this); > } > > // Add to new Parent > newParent.getChildren().add(this); > > // Set new Parent > this.parent = newParent; > } > } > > This is similar to the Composite Pattern (or better, a part of it): > > http://www.idg.net/english/crd_composite_948016.html > > -- > Christian Bauer > tu...@in... > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Geek Gift Procrastinating? > Get the perfect geek gift now! Before the Holidays pass you by. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > hibernate-devel mailing list > hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > |
From: Christian B. <chr...@bl...> - 2002-12-19 09:32:52
|
On 19 Dec (09:20), Jim Downing wrote: > Thanks - I'd used the advance in Tom's manual to do the mapping, but I > was trying to maintain the relationship in my persistent objects > (rather than making the client do it, as in the FAQ), which was > probably the cause of my problems. Thats exactly what I'm doing: class Child { public setParent(Parent newParent) { // Remove myself from old Parent if (this.parent != null) { this.parent.getChildren().remove(this); } // Add to new Parent newParent.getChildren().add(this); // Set new Parent this.parent = newParent; } } This is similar to the Composite Pattern (or better, a part of it): http://www.idg.net/english/crd_composite_948016.html -- Christian Bauer tu...@in... |
From: Jim D. <jim...@po...> - 2002-12-19 09:20:16
|
On Thu, Dec 19, 2002 at 10:02:10AM +0100, Christian Bauer wrote: > On 19 Dec (00:57), Mark Woon wrote: > > >How do you 'setparent/setchild on both ends'? Is guidance on this in > > >some documentation that I missed? > > > > Check out http://www.xylax.net/hibernate/. Tom has pulled together some > > pretty useful examples and they also have notes on bi-directional > > associations. > > It is also an item in the FAQ. Thanks - I'd used the advance in Tom's manual to do the mapping, but I was trying to maintain the relationship in my persistent objects (rather than making the client do it, as in the FAQ), which was probably the cause of my problems. Thanks, jim |
From: Ugo C. <u....@cb...> - 2002-12-19 09:03:27
|
Gavin King wrote: > Woops, no, I didn't realise this.... (recent functionality, btw) would you submit a bug report and / or patch please. TIA. I've just submitted a bug report. But don't expect a patch anytime soon, I've just started playing with Hibernate a couple of days ago and haven't even downloaded the source, yet. Nice piece of work, BTW. Ugo -- Ugo Cei - http://www.beblogging.com/blog/ |