Re: [Hibernate] Hi

2006-03-24 Thread Christian Bauer


On Mar 24, 2006, at 2:30 PM, hamed shayan wrote:


Please check the following code:
http://www.hshayan.com/hibernate


Don't bother, it's just a dump of his project that he hopes somebody  
here would debug. Mr. Hamed Shayan, you want to go to http:// 
forum.hibernate.org/




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] Hi

2006-03-24 Thread hamed shayan
Dear friends,
Please check the following code:
http://www.hshayan.com/hibernate-- Sincerly Yours,Hamed Shayan 


Re: [Hibernate] Hi!

2005-04-07 Thread Ricardo Moral
Ok. I'll work on a new Exporter to create javadoc-style documentation.
I'll let you know when I have something working.

:-)



On Apr 7, 2005 9:58 AM, Max Rydahl Andersen <[EMAIL PROTECTED]> wrote:
> Hi Ricardo,
> 
> > Because of this probably the toolsets generators/templates would be
> > the best place for me to begin.
> 
> They are locatated in the hibernateext module under the tools directory.
> 
> > Anyway I find the following quite interesting:
> >
> > - building hbmlint (a validator that checks if a hibernate configuration
> > matches the database)
> 
> This one is described here:
> http://opensource.atlassian.com/projects/hibernate/browse/HBX-95
> 
> > - building datagen (a tool for easy generation of testdata based on a
> > hibernate configuration)
> 
> Not begun or described yet, but in short words:
> 
> Hibernate mapping contains alot of information that can be used to generate
> test data with simulated content while obeying the constraints of the db.
> 
> By using the mappings + some info on what kind of data that is in the
> fields and their constraints
> you can automatically sample/generate a good test bed. Add some good
> sampling methods and
> stochastic calculations to provide some user controlled variations to the
> data and their assocations
> and we will have something that could be very usefull for junitesting,
> loadtesting and mere fun ,)
> 
> I've added this as an jira at
> http://opensource.atlassian.com/projects/hibernate/browse/HBX-215
> 
> > - building/adding/improving the toolsets generators/templates (like
> > providing a DataDictionary, class diagram generation etc.)
> 
> Our generator is simply handled a Hibernate Configuration and from that we
> today can generate:
> - pojo code (with or without generics and/or ejb3 annotations)
> - hbm.xml (used for our rev.eng. to output the reverse engineerd mappings)
> - hibernate.cfg.xml
> 
> This can be extended via code and/or velocity templates and some of the
> ideas I/we have are:
> 
> Generate a data dictionary of the catalog/schema/table/columnsforeignkey
> with info on what they are used etc.
>  (I'm imaging something like a javadoc layout, but just for a db with
> catalog/schema as "packages", table as "classes" and columns/foreignkey as
> "fields/methods")
> 
> Generate ER/Classdiagrams in to some already existing fileformat for a
> graph tool (like http://c2.com/cgi/wiki?GraphViz) (these could even be
> integrated into the datadictionary from above)
> 
> Generate DAO's (i think Gavin is working on this)
> 
> 
> 
> ...and then the existing templates/code can also be improved - especially
> the EJB3 stuff which only handles the basic cases at the moment.
> 
> > You tell me which project needs more help and please give me more
> > information about the pending tasks.
> 
> All of the above ,)
> Pick one that fits what you like and fits your existing knowledge of
> hibernate
> 
> /max
> 
> ---
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> ___
> hibernate-devel mailing list
> hibernate-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
>


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


Re: [Hibernate] Hi!

2005-04-07 Thread Max Rydahl Andersen
Hi Ricardo,
Because of this probably the toolsets generators/templates would be
the best place for me to begin.
They are locatated in the hibernateext module under the tools directory.
Anyway I find the following quite interesting:
- building hbmlint (a validator that checks if a hibernate configuration
matches the database)
This one is described here:  
http://opensource.atlassian.com/projects/hibernate/browse/HBX-95

- building datagen (a tool for easy generation of testdata based on a
hibernate configuration)
Not begun or described yet, but in short words:
Hibernate mapping contains alot of information that can be used to generate
test data with simulated content while obeying the constraints of the db.
By using the mappings + some info on what kind of data that is in the  
fields and their constraints
you can automatically sample/generate a good test bed. Add some good  
sampling methods and
stochastic calculations to provide some user controlled variations to the  
data and their assocations
and we will have something that could be very usefull for junitesting,  
loadtesting and mere fun ,)

I've added this as an jira at  
http://opensource.atlassian.com/projects/hibernate/browse/HBX-215

- building/adding/improving the toolsets generators/templates (like
providing a DataDictionary, class diagram generation etc.)
Our generator is simply handled a Hibernate Configuration and from that we  
today can generate:
- pojo code (with or without generics and/or ejb3 annotations)
- hbm.xml (used for our rev.eng. to output the reverse engineerd mappings)
- hibernate.cfg.xml

This can be extended via code and/or velocity templates and some of the  
ideas I/we have are:

Generate a data dictionary of the catalog/schema/table/columnsforeignkey  
with info on what they are used etc.
 (I'm imaging something like a javadoc layout, but just for a db with  
catalog/schema as "packages", table as "classes" and columns/foreignkey as  
"fields/methods")

Generate ER/Classdiagrams in to some already existing fileformat for a  
graph tool (like http://c2.com/cgi/wiki?GraphViz) (these could even be  
integrated into the datadictionary from above)

Generate DAO's (i think Gavin is working on this)

...and then the existing templates/code can also be improved - especially  
the EJB3 stuff which only handles the basic cases at the moment.

You tell me which project needs more help and please give me more
information about the pending tasks.
All of the above ,)
Pick one that fits what you like and fits your existing knowledge of  
hibernate

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


[Hibernate] Hi!

2005-04-06 Thread Ricardo Moral
Max, 

I've received your email.

For a project some time ago I've used Middlegen and the hibernate
tools to autogenerate mappings and classes from the database model.
During that project I had to modify the velocity templates and adapt
the code a little because of our needs; so I reviewed the source code.

Because of this probably the toolsets generators/templates would be
the best place for me to begin.

Anyway I find the following quite interesting:

- building hbmlint (a validator that checks if a hibernate configuration
matches the database)
- building datagen (a tool for easy generation of testdata based on a
hibernate configuration)
- building/adding/improving the toolsets generators/templates (like
providing a DataDictionary, class diagram generation etc.)

You tell me which project needs more help and please give me more
information about the pending tasks.

Best Regards,
Ricardo.



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


[Hibernate] Hi! I really need help...

2004-04-26 Thread SunFengmin

(B
(B
(BHi! I really need help... 
(B
(BI'm using hibernate 
(B2.1.2
(B 
(BI$B!-(Bm trying to insert o clob 
(Bfield into Oracle... I did the example located at page http://www.hibernate.org/56.html. What is wrong??? How can I insert o clob into Oracle? 
(BThe error that I have received for sizes bigger then 4000 caracteres is: 
(B
(B 
(Bnet.sf.hibernate.JDBCException: could not update: 
(B[com.dhc.doc.hibernate.FileAttachment#42]	at 
(Bnet.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:706)	at 
(Bnet.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:641)	at 
(Bnet.sf.hibernate.impl.ScheduledUpdate.execute(ScheduledUpdate.java:52)	at 
(Bnet.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2382)	at 
(Bnet.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2336)	at 
(Bnet.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2204)	at 
(Bcom.dhc.doc.logic.FileAttachmentLogic.addFileAttachment(FileAttachmentLogic.java:51)	at 
(Bcom.dhc.doc.actions.FileUploadAction.execute(FileUploadAction.java:44)	at 
(Borg.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)	at 
(Borg.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)	at 
(Borg.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)	at 
(Borg.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)	at 
(Bjavax.servlet.http.HttpServlet.service(HttpServlet.java:760)	at 
(Bjavax.servlet.http.HttpServlet.service(HttpServlet.java:853)	at 
(Borg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)	at 
(Borg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)	at 
(Borg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
(BCaused by: java.sql.SQLException: 
(Boperation not allowed: streams type cannot be used in batching	at 
(Boracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)	at 
(Boracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)	at 
(Boracle.jdbc.driver.OraclePreparedStatement.addBatch(OraclePreparedStatement.java:2781)	at 
(Bnet.sf.hibernate.impl.BatchingBatcher.addToBatch(BatchingBatcher.java:30)	at 
(Bnet.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:688)- 
(BMy source code is: :: Teste.hbm.xml  "-//Hibernate/Hibernate Mapping DTD//EN" 
(B"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" > 
(B  name="net.wasys.crea.model.Teste" table="TESTE" > name="id" type="long" column="ID" >   name="texto" 
(Btype="clob" column="TEXTO" not-null="true" /> 
(B  
(B :: Teste.java 
(Bimport java.io.Serializable; import java.sql.Clob; import 
(Borg.apache.commons.lang.builder.EqualsBuilder; import 
(Borg.apache.commons.lang.builder.HashCodeBuilder; import 
(Borg.apache.commons.lang.builder.ToStringBuilder; /** @author Hibernate 
(BCodeGenerator */ public class Teste implements Serializable { /** 
(Bidentifier field */ private Long id; /** persistent field */ 
(Bprivate Clob texto; . . . 
(B :: 
(BTeste4000.java (My test case) public class Teste4000 { public 
(Bstatic void main(String[] args) throws Exception { BufferedReader reader 
(B= new BufferedReader(new 
(BFileReader("C://workspaces/crea/Crea/src/net/wasys/crea/test/a.txt")); 
(BString line = null; StringBuffer sb = new StringBuffer(); while 
(B((line = reader.readLine()) != null) { sb.append(line); } 
(BSystem.out.println(sb.toString().length()); Teste teste = new 
(BTeste(); Configuration c = new Configuration(); c.configure(new 
(BFile("hibernateTeste.cfg.xml")); Session session = 
(Bc.buildSessionFactory().openSession(); Transaction tx; tx = 
(Bsession.beginTransaction(); teste.setId(new Long(11)); 
(Bteste.setTexto(Hibernate.createClob(sb.toString())); 
(Bsession.save(teste); session.flush(); session.refresh(teste, 
(BLockMode.UPGRADE); oracle.sql.CLOB clob = (oracle.sql.CLOB) 
(Bteste.getTexto(); java.io.Writer pw = clob.getCharacterOutputStream(); 
(Bpw.write(1); pw.flush(); pw.close(); tx.commit(); 
(Bsession.close(); Thanks!

[Hibernate] Hi (Problem with Many to Many relationship)

2003-08-14 Thread Prasad Iyer



Hi,
Supponse I have a Author and Title 
table with many to many relationship. 
The problem is if I have one Author with 
many titles. Do I have to explicitly add Titles using session.save(title) to 
save the individual titles for the author. I think hibernate should take 
care of it internally like it does for many-to-many 
relationship.
Does anyone have example for many-to-many 
relationship.
This would help me a lot.
regards
prasad 
chandrasekaran


Re: [Hibernate] Hi (Problem with Many to Many relationship)

2003-08-14 Thread Gavin . King

No, you shouldn't need to do anything special  cascade semantics are
same as one-to-many.




|-+--->
| |   "Prasad Iyer"   |
| |   <[EMAIL PROTECTED]>  |
| |   Sent by:|
| |   [EMAIL PROTECTED]|
| |   ceforge.net |
| |   |
| |   |
| |   11/08/03 05:00 PM   |
| |   Please respond to "Prasad Iyer" |
| |   |
|-+--->
  
>--|
  |
  |
  |   To:   <[EMAIL PROTECTED]>
  |
  |   cc:  
          |
  |   Subject:  [Hibernate] Hi (Problem with Many to Many relationship)
  |
  
>--|




Hi,
Supponse I have a Author and Title table with many to many relationship.
The problem is if I have one Author with many titles. Do I have to
explicitly add Titles using session.save(title) to save the individual
titles for the author. I think hibernate should take care of it internally
like it does for many-to-many relationship.
Does anyone have example for many-to-many relationship.
This would help me a lot.
regards
prasad chandrasekaran



**
Any personal or sensitive information contained in this email and
attachments must be handled in accordance with the Victorian Information
Privacy Act 2000, the Health Records Act 2001 or the Privacy Act 1988
(Commonwealth), as applicable.

This email, including all attachments, is confidential.  If you are not the
intended recipient, you must not disclose, distribute, copy or use the
information contained in this email or attachments.  Any confidentiality or
privilege is not waived or lost because this email has been sent to you in
error.  If you have received it in error, please let us know by reply
email, delete it from your system and destroy any copies.
**






---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] Hi, Log4j problem

2003-08-14 Thread Prasad Iyer
Hi
I am using hibernate-plugin for eclipse.
I get this warning when I run this code.
log4j:WARN No appenders could be found for logger
(net.sf.hibernate.cfg.Environment).

log4j:WARN Please initialize the log4j system properly.

Can somebody help me out with this.
Would highly appreciate
regards
prasad chandrasekaran



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] Hi, Log4j problem

2003-08-14 Thread Mark Woon




Prasad Iyer wrote:

  
  
  [Hibernate] Hi, Log4j problem

  Hi
  
  I am using hibernate-plugin for eclipse.
  
  I get this warning when I run this code.
  
  log4j:WARN No appenders could be found for logger
  
  (net.sf.hibernate.cfg.Environment).
  
  log4j:WARN Please initialize the log4j system
properly.
  


I don't use Eclipse, but I've seen this before whenever the
log4j.properties file could not be found.

-Mark






Re: [Hibernate] Hi (Problem with Many to Many relationship)

2003-08-14 Thread Gavin . King

where is your cascade="save-update"???!



|-+--->
| |   "Prasad Iyer"   |
| |   <[EMAIL PROTECTED]>  |
| |   Sent by:|
| |   [EMAIL PROTECTED]|
| |   ceforge.net |
| |   |
| |   |
| |   11/08/03 08:29 PM   |
| |   Please respond to "Prasad Iyer" |
| |   |
|-+--->
  
>--|
  |
  |
  |   To:   <[EMAIL PROTECTED]>
  |
  |   cc:  
          |
  |   Subject:  Re: [Hibernate] Hi (Problem with Many to Many relationship)
  |
  
>--|




Hi again,
It should be working. But it isn't working in my case :). I am sending my
hibernating mapping with this email.
The scenario is I have Author Bean which has one property type as Set which
holds Collection of the Title Bean. And in Title Bean I have property type
Set which holds collection of Authors.
I have this Author which has collection of five Title I need to add it to
database.
session.save(author). Only Author gets saved not the Title. If you have any
example or any site which explains this please let me know
thanks
regards
prasad chandrasekaran









 
 










 
 




 
  
  
 




- Original Message -
From: <[EMAIL PROTECTED]>
To: "Prasad Iyer" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, August 11, 2003 3:42 PM
Subject: Re: [Hibernate] Hi (Problem with Many to Many relationship)


>
> No, you shouldn't need to do anything special  cascade semantics are
> same as one-to-many.
>
>
>
>
> |-+--->
> | |   "Prasad Iyer"   |
> | |   <[EMAIL PROTECTED]>  |
> | |   Sent by:|
> | |   [EMAIL PROTECTED]|
> | |   ceforge.net |
> | |   |
> | |   |
> | |   11/08/03 05:00 PM   |
> | |   Please respond to "Prasad Iyer" |
> | |   |
> |-+--->
>
>-------

---|
>   |
|
>   |   To:   <[EMAIL PROTECTED]>
|
>   |   cc:
|
>   |   Subject:  [Hibernate] Hi (Problem with Many to Many
relationship)  |
>
>---
---|
>
>
>
>
> Hi,
> Supponse I have a Author and Title table with many to many relationship.
> The problem is if I have one Author with many titles. Do I have to
> explicitly add Titles using session.save(title) to save the individual
> titles for the author. I think hibernate should take care of it
internally
> like it does for many-to-many relationship.
> Does anyone have example for many-to-many relationship.
> This would help me a lot.
> regards
> prasad chandrasekaran
>
>
>
> **
> Any personal or sensitive information contained in this email and
> attachments must be handled in accordance with the Victorian Information
> Privacy Act 2000, the Health Records Act 2001 or the Privacy Act 1988
> (Commonwealth), as applicable.
>
> This email, including all attachments, is confidential.  If you are not
the
> intended recipient, you must not disclose, distribute, copy or u

Re: [Hibernate] Hi (Problem with Many to Many relationship)

2003-08-14 Thread Prasad Iyer
Hi,
Thanks for the help. But I am still facing some problem.
It gives me error. following is the stack trace

net.sf.hibernate.HibernateException: Another object was associated with this
id (the object with the given id was already loaded):
[presci.walnut.manytomany.Work#0]
 at net.sf.hibernate.impl.SessionImpl.doUpdate(SessionImpl.java:1294)
 at net.sf.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:1218)
 at net.sf.hibernate.engine.Cascades$3.cascade(Cascades.java:81)
 at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:238)
 at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:272)
 at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:306)
 at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:754)
 at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:620)
 at presci.walnut.manytomany.AuthorWork.add(AuthorWork.java:55)
 at presci.walnut.manytomany.AuthorWork.main(AuthorWork.java:81)

when I run the following code.

  Session session = null;
  Transaction tx = null;
  try {
   session = sessions.openSession();
   tx = session.beginTransaction();

   LinkedHashSet _work = new LinkedHashSet();
   _work.add(new Work("Title 1"));
_work.add(new Work("Title 2"));
   _work.add(new Work("Title 3"));
   _work.add(new Work("Title 4"));
   _work.add(new Work("Title 5"));
   _work.add(new Work("Title 6"));
   _work.add(new Work("Title 7"));
   _work.add(new Work("Title 8"));

   Author author = new Author("Prasad", _work);

   session.save(author);

   session.flush();
   tx.commit();

  } catch (Exception ex) {
   ex.printStackTrace();
   try {
if (tx != null)
 tx.rollback();
   } catch (Exception iex) {
System.err.println("Err rolling back the transaction");
   }
  } finally {
   try {
if (session != null)
 session.close();
   } catch (Exception ex) {
System.err.println("Error closing session");
   }

Thanks for the help
regards
prasad chandrasekaran

- Original Message -
From: <[EMAIL PROTECTED]>
To: "Prasad Iyer" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, August 11, 2003 4:02 PM
Subject: Re: [Hibernate] Hi (Problem with Many to Many relationship)


>
> where is your cascade="save-update"???!
>
>
>
> |-+--->
> | |   "Prasad Iyer"   |
> | |   <[EMAIL PROTECTED]>  |
> | |   Sent by:|
> | |   [EMAIL PROTECTED]|
> | |   ceforge.net |
> | |   |
> | |   |
> | |   11/08/03 08:29 PM   |
> | |   Please respond to "Prasad Iyer" |
> | |   |
> |-+--->
>
>---
---|
>   |
|
>   |   To:   <[EMAIL PROTECTED]>
|
>   |   cc:
|
>   |   Subject:  Re: [Hibernate] Hi (Problem with Many to Many
relationship)  |
>
>---
---|
>
>
>
>
> Hi again,
> It should be working. But it isn't working in my case :). I am sending my
> hibernating mapping with this email.
> The scenario is I have Author Bean which has one property type as Set
which
> holds Collection of the Title Bean. And in Title Bean I have property type
> Set which holds collection of Authors.
> I have this Author which has collection of five Title I need to add it to
> database.
> session.save(author). Only Author gets saved not the Title. If you have
any
> example or any site which explains this please let me know
> thanks
> regards
> prasad chandrasekaran
>
> 
> 
> 
> 
> 
>
> 
> 
>  
>   column="work_id"/>
> 
> 
>
> 
> 
> 
> 
>
> 
>     
>  
>   column="author_id"/>
> 
> 
>
> 
>  
>name="author"
> column="author_id"/>
>column="work_id"/>
>  
> 
> 
>
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Prasad Iyer&

Re: [Hibernate] Hi (Problem with Many to Many relationship)

2003-08-11 Thread Prasad Iyer
Hi again,
It should be working. But it isn't working in my case :). I am sending my
hibernating mapping with this email.
The scenario is I have Author Bean which has one property type as Set which
holds Collection of the Title Bean. And in Title Bean I have property type
Set which holds collection of Authors.
I have this Author which has collection of five Title I need to add it to
database.
session.save(author). Only Author gets saved not the Title. If you have any
example or any site which explains this please let me know
thanks
regards
prasad chandrasekaran









 
 










 
 




 
  
  
 




- Original Message -
From: <[EMAIL PROTECTED]>
To: "Prasad Iyer" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, August 11, 2003 3:42 PM
Subject: Re: [Hibernate] Hi (Problem with Many to Many relationship)


>
> No, you shouldn't need to do anything special  cascade semantics are
> same as one-to-many.
>
>
>
>
> |-+--->
> | |   "Prasad Iyer"   |
> | |   <[EMAIL PROTECTED]>  |
> | |   Sent by:|
> | |   [EMAIL PROTECTED]|
> | |   ceforge.net |
> | |   |
> | |   |
> | |   11/08/03 05:00 PM   |
> | |   Please respond to "Prasad Iyer" |
> | |   |
> |-+--->
>
>---
-----------|
>   |
|
>   |   To:   <[EMAIL PROTECTED]>
|
>   |   cc:
|
>   |   Subject:  [Hibernate] Hi (Problem with Many to Many
relationship)  |
>
>---
---|
>
>
>
>
> Hi,
> Supponse I have a Author and Title table with many to many relationship.
> The problem is if I have one Author with many titles. Do I have to
> explicitly add Titles using session.save(title) to save the individual
> titles for the author. I think hibernate should take care of it internally
> like it does for many-to-many relationship.
> Does anyone have example for many-to-many relationship.
> This would help me a lot.
> regards
> prasad chandrasekaran
>
>
>
> **
> Any personal or sensitive information contained in this email and
> attachments must be handled in accordance with the Victorian Information
> Privacy Act 2000, the Health Records Act 2001 or the Privacy Act 1988
> (Commonwealth), as applicable.
>
> This email, including all attachments, is confidential.  If you are not
the
> intended recipient, you must not disclose, distribute, copy or use the
> information contained in this email or attachments.  Any confidentiality
or
> privilege is not waived or lost because this email has been sent to you in
> error.  If you have received it in error, please let us know by reply
> email, delete it from your system and destroy any copies.
> **
>
>
>
>



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel