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: Murthy G. <mur...@ho...> - 2015-06-17 20:01:59
|
Hi All: I am having problems with committing transactions using Hibernate + Bitronix where the call to persist occurs in another jar. For example, if I have jarA and jarB. JarA begins a transaction and calls a method in jarB. The method in jarB persists its data. Finally jarA commits the transaction. However, the commit doesn't go through as Bitronix throws an exception saying there is no transaction. Some relevant code: Jar A: void doStuffInJarA() { BitronixTransactionManager btm = TransactionManagerServices.getTransactionManager(); btm.begin(); callMethodInJarB(); btm.commit(); } ... Jar B: void callMethodInJarB() { MyDAO mydao = new MyDAO(); mydao.persist(myObject); } |
From: Badoo <no...@ba...> - 2012-01-15 01:44:38
|
Luiz deixou uma mensagem para você... Só você pode ler o conteúdo desta mensagem e ver quem a enviou. Delete a qualquer momento ou responda imediatamente com o sistema de troca de mensagens. Para descobrir o que diz a mensagem, siga este link. http://us1.badoo.com/01054661533/in/xHKUvwHDF88/?lang_id=61&m=21&mid=4f122f7300000000003d0000cfc8e1d3 Mais gente que espera pacientemente por você: Edu (Rio de Janeiro, Brasil) Rebecca Duarte (Rio de Janeiro, Brasil) El mas guapo de aqui (Rio de Janeiro, Brasil) http://us1.badoo.com/01054661533/in/xHKUvwHDF88/?lang_id=61&m=21&mid=4f122f7300000000003d0000cfc8e1d3 Se o link desta mensagem não funcionar, copie e cole-o em seu navegador. Este email faz parte de nosso sistema de entrega para a mensagem enviada por Luiz. Se recebeu este email por engano, por favor ignore-o. A mensagem será deletada em breve. Divirta-se! A Equipe Badoo Você recebeu este email, porque um membro do Badoo deixou uma mensagem para você no Badoo. Esta é uma mensagem de somente envio. Respostas a esta mensagem não são monitoradas ou respondidas. Se você não quer receber mais mensagens do Badoo, por favor nos notifique: http://us1.badoo.com/impersonation.phtml?lang_id=61&mail_code=21&email=hibernate-devel%40lists.sourceforge.net&secret=&action=block&block_code=d94d23&m=21&mid=4f122f7300000000003d0000cfc8e1d3 |
From: Kent B. P. <KBP...@UP...> - 2010-09-15 13:48:11
|
I will be out of the office starting 09/06/2010 and will not return until 09/27/2010. ** This message and any attachments contain information from Union Pacific which may be confidential and/or privileged. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited by law. If you receive this message in error, please contact the sender immediately and delete the message and any attachments. ** |
From: Ganesh K. C. <gan...@gm...> - 2010-02-21 17:21:53
|
Hi , When i am trying to execute iterate method on Query Object (Query Object is created from HQL) the exception massage "fetch may not be used with scroll() or iterate()" is throwing out. This massage is misleading the developer because it is correct that we can't use Join condition with iterate but we can use it with scroll . So i think this is a small bug which has not any impact on the execution of the program but it is creating wrong conception among developers. Thanks, Ganesh -- Man cannot discover new oceans unless he has the courage to lose sight of the shore. |
From: Joshua D. \(yahoo\) <pg...@ya...> - 2009-12-08 18:26:28
|
There is no piont. However, it's not part of any public API. There are probably more practical bugs to fix. Sent from my iPhone On Dec 8, 2009, at 12:25 PM, Ganesh Kumar Choudhary <gan...@gm...> wrote: But what is the advantage we are getting by implementing serializable interface in DotNode Class ? Don't you think that it is something like a bug ? The objective of implementing serializable interface is simply "to facilitate the serialization" but due to this very problem user can't able to serialize that so i am not getting the point why it is implementing this interface ? Thanks, Ganesh ---------- Forwarded message ---------- From: Joshua Davis (yahoo) <pg...@ya...> Date: Mon, Dec 7, 2009 at 11:19 PM Subject: Re: [Hibernate] org.hibernate.hql.ast.tree.DotNode Implements Serializable but we can't serialize it To: Ganesh Kumar Choudhary <gan...@gm...> Why do you need to serialized the parse trees? It would be better to re-parse the string in order to get all the other non serializable references anyhow. Sent frome my iPhone On Dec 7, 2009, at 12:36 PM, Ganesh Kumar Choudhary <gan...@gm...> wrote: org.hibernate.hql.ast.tree.DotNode Implements Serializable interface but when i am trying to serialize it i am getting some exception that java.io.NotSerializableException: org.hibernate.hql.ast.HqlSqlWalker On debugging i found that DotNode class has the reference of HqlSqlWalker class and this class doesn't implement serializable interface.So the program is throwing this exception. I think either the reference of HqlSqlWalker should be declared as transient, or the HqlSqlWalker class itself should also implement serializable interface to get the benefit of implementing serializable interface by DotNode Class. Otherwise it is not worth to implement serializable interface by DotNode class because ultimately we are not able to serialize it in the current form . Is it a bug or something else ?? Thanks, Ganesh -- Man cannot discover new oceans unless he has the courage to lose sight of the shore. -- Man cannot discover new oceans unless he has the courage to lose sight of the shore. ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ hibernate-devel mailing list hib...@li... https://lists.sourceforge.net/lists/listinfo/hibernate-devel -- Man cannot discover new oceans unless he has the courage to lose sight of the shore. ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ hibernate-devel mailing list hib...@li... https://lists.sourceforge.net/lists/listinfo/hibernate-devel |
From: Ganesh K. C. <gan...@gm...> - 2009-12-08 17:25:20
|
But what is the advantage we are getting by implementing serializable interface in DotNode Class ? Don't you think that it is something like a bug ? The objective of implementing serializable interface is simply "to facilitate the serialization" but due to this very problem user can't able to serialize that so i am not getting the point why it is implementing this interface ? Thanks, Ganesh ---------- Forwarded message ---------- From: Joshua Davis (yahoo) <pg...@ya...> Date: Mon, Dec 7, 2009 at 11:19 PM Subject: Re: [Hibernate] org.hibernate.hql.ast.tree.DotNode Implements Serializable but we can't serialize it To: Ganesh Kumar Choudhary <gan...@gm...> Why do you need to serialized the parse trees? It would be better to re-parse the string in order to get all the other non serializable references anyhow. Sent frome my iPhone On Dec 7, 2009, at 12:36 PM, Ganesh Kumar Choudhary <gan...@gm...> wrote: org.hibernate.hql.ast.tree.DotNode Implements Serializable interface but when i am trying to serialize it i am getting some exception that java.io.NotSerializableException: org.hibernate.hql.ast.HqlSqlWalker On debugging i found that DotNode class has the reference of HqlSqlWalker class and this class doesn't implement serializable interface.So the program is throwing this exception. I think either the reference of HqlSqlWalker should be declared as transient, or the HqlSqlWalker class itself should also implement serializable interface to get the benefit of implementing serializable interface by DotNode Class. Otherwise it is not worth to implement serializable interface by DotNode class because ultimately we are not able to serialize it in the current form . Is it a bug or something else ?? Thanks, Ganesh -- Man cannot discover new oceans unless he has the courage to lose sight of the shore. -- Man cannot discover new oceans unless he has the courage to lose sight of the shore. ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ hibernate-devel mailing list hib...@li... https://lists.sourceforge.net/lists/listinfo/hibernate-devel -- Man cannot discover new oceans unless he has the courage to lose sight of the shore. |
From: Ganesh K. C. <gan...@gm...> - 2009-12-07 17:36:43
|
org.hibernate.hql.ast.tree.DotNode Implements Serializable interface but when i am trying to serialize it i am getting some exception that java.io.NotSerializableException: org.hibernate.hql.ast.HqlSqlWalker On debugging i found that DotNode class has the reference of HqlSqlWalker class and this class doesn't implement serializable interface.So the program is throwing this exception. I think either the reference of HqlSqlWalker should be declared as transient, or the HqlSqlWalker class itself should also implement serializable interface to get the benefit of implementing serializable interface by DotNode Class. Otherwise it is not worth to implement serializable interface by DotNode class because ultimately we are not able to serialize it in the current form . Is it a bug or something else ?? Thanks, Ganesh -- Man cannot discover new oceans unless he has the courage to lose sight of the shore. -- Man cannot discover new oceans unless he has the courage to lose sight of the shore. |
From: Arif R. <ar...@uw...> - 2009-10-22 13:53:42
|
Hi there Please find below a link to a survey related to my PhD research work to evaluate OSS usability improvement from Contributor's point of view. It shall not take more than 5 minutes of your precious time. Your identity is neither required nor recorded. The participation is highly valued and appreciated. http://www.kwiksurveys.com/online-survey.php?surveyID=OLHOO_22480cb3 Thank you and Best Regards Arif |
From: Gary <mag...@gm...> - 2009-09-15 16:28:20
|
Iin mapping file of Person class,if i specify a "one to many" relation to Address class, there will be a field that type is Set<Address> in Person class, my problem is... how to use "where clause" to filter the Address entity in that set... if the name of that field is "addressSet" the follow statement can't work... from Person as p where p.addressSet = 'xxx' -- 北科資工 祐正 |
From: Ganesh K. C. <gan...@gm...> - 2009-07-24 10:04:01
|
Hi , I want to know the implementation of "HQL to SQL transformation" in Hibernate. Especially, the parsing of HQL and Converting it into AST so that i can design the AST for any of the HQL Query manually . I tried to go through the API Docs but due to lack of proper documentation i could not get anything. I will appreciate If anybody shares of any web-link or any material that can help me . Thanks, Ganesh -- Man cannot discover new oceans unless he has the courage to lose sight of the shore. |
From: Geoffrey De S. <ge0...@gm...> - 2009-07-23 18:40:14
|
In the hibernate entitymanager manual, section 6.1. Bulk update/delete: String ejbqlUpdate = "update Customer set name = :newName where name = :oldName" int updatedEntities = entityManager.createQuery( hqlUpdate ) The variable name changes: from ejbqlUpdate to hqlUpdate. It should be the same. -- With kind regards, Geoffrey De Smet |
From: Sandeep V. <cat...@gm...> - 2009-07-07 12:41:41
|
Thanks Max For your help.. I have one more sure stopper.. Can you please provide your comments on http://opensource.atlassian.com/projects/hibernate/browse/HHH-4024 Thanks in advance!! On Mon, Jul 6, 2009 at 8:28 PM, Max Rydahl Andersen <max...@re... > wrote: > > 3) can you please provide me Steve email address.. >> > He is on this mailing list, forums and irc. > > No reason to mail him directly. > > /max > > -- Regards, Sandeep Vaid +91 - 09881710301 |
From: Sandeep V. <cat...@gm...> - 2009-07-07 11:06:42
|
Hi, As per my knowledge presently hibernate doesn't support for this type of association. http://opensource.atlassian.com/projects/hibernate/browse/HHH-4024 Can someone please help me on this sure stopper. -- Regards, Sandeep Vaid +91 - 09881710301 |
From: Sandeep V. <cat...@gm...> - 2009-07-07 09:47:11
|
Max, As per my knowledge there is no way in hibernate to specify such a mapping... Hence it's a valid improvement task for Hibernate.. Can you please let me know who will be able to help me in this regard? Enjoy your vacation...!! On Tue, Jul 7, 2009 at 3:09 PM, Max Rydahl Andersen <max...@re... > wrote: > > > Sandeep Vaid wrote: > > Thanks Max For your help.. > I have one more sure stopper.. > Can you please provide your comments on > http://opensource.atlassian.com/projects/hibernate/browse/HHH-4024 > > Thanks in advance!! > > Your jira's are still usage questions - not specific bug or feature > requests. > > I don't work on this part in hibernate daily and are busy preparing for > vacation so I can't provide your more guidance right now. > > /max > > > On Mon, Jul 6, 2009 at 8:28 PM, Max Rydahl Andersen < > max...@re...> wrote: > >> >> 3) can you please provide me Steve email address.. >> >> He is on this mailing list, forums and irc. >> >> No reason to mail him directly. >> >> /max >> >> > > > -- > Regards, > Sandeep Vaid > +91 - 09881710301 > > -- Regards, Sandeep Vaid +91 - 09881710301 |
From: Sandeep V. <cat...@gm...> - 2009-07-06 12:52:07
|
Max, I think my problem is resolved... I have also posted the solution on Hibernate JIRA.... Tomorrow i will confirm this.. Thanks a lot for your help !!! On Mon, Jul 6, 2009 at 1:54 PM, Sandeep Vaid <cat...@gm...>wrote: > Max, > > 1) Thanks !!!:) > > 2) I think even many-to-one won't help as the real problem is that we can;t > specify relationship on a part of composite-id and a fields of composite-id > as foreign key.. > > 3) can you please provide me Steve email address.. > > Thanks In Advance.. > > > On Mon, Jul 6, 2009 at 1:11 PM, Max Rydahl Andersen < > max...@re...> wrote: > >> >> >> Sandeep Vaid wrote: >> >>> Max, >>> 1) Please provide me the link for paid commercial support. >>> I found this link https://www.hibernate.org/149.html but couldn;t able >>> to find out what are the charges for hibernate support. >>> >> If you can't find the exact product you are looking for then contact sales >> directly. Mail and numbers are on those pages. >> >>> >>> 2) Do you agree that hibernate needs improvement to support this kind of >>> requirement. >>> I am able to fetch the mapping using workarounds (filters & a change in >>> hibernate source code to enable filter for one-to-one). >>> The problem is with save operation.. >>> >> Steve is the right one to discuss this with since I recall there were very >> good reasons for not supporting filters in one-to-one; I just don't >> remember the details. btw. how about mapping it as a many-to-one ? >> wouldn't that work for you ? >> >> /max >> > > > > -- > Regards, > Sandeep Vaid > +91 - 09881710301 > -- Regards, Sandeep Vaid +91 - 09881710301 |
From: Sandeep V. <cat...@gm...> - 2009-07-06 08:24:40
|
Max, 1) Thanks !!!:) 2) I think even many-to-one won't help as the real problem is that we can;t specify relationship on a part of composite-id and a fields of composite-id as foreign key.. 3) can you please provide me Steve email address.. Thanks In Advance.. On Mon, Jul 6, 2009 at 1:11 PM, Max Rydahl Andersen <max...@re... > wrote: > > > Sandeep Vaid wrote: > >> Max, >> 1) Please provide me the link for paid commercial support. >> I found this link https://www.hibernate.org/149.html but couldn;t able to >> find out what are the charges for hibernate support. >> > If you can't find the exact product you are looking for then contact sales > directly. Mail and numbers are on those pages. > >> >> 2) Do you agree that hibernate needs improvement to support this kind of >> requirement. >> I am able to fetch the mapping using workarounds (filters & a change in >> hibernate source code to enable filter for one-to-one). >> The problem is with save operation.. >> > Steve is the right one to discuss this with since I recall there were very > good reasons for not supporting filters in one-to-one; I just don't > remember the details. btw. how about mapping it as a many-to-one ? wouldn't > that work for you ? > > /max > -- Regards, Sandeep Vaid +91 - 09881710301 |
From: Sandeep V. <cat...@gm...> - 2009-07-06 07:23:36
|
Max, 1) Please provide me the link for paid commercial support. I found this link https://www.hibernate.org/149.html but couldn;t able to find out what are the charges for hibernate support. 2) Do you agree that hibernate needs improvement to support this kind of requirement. I am able to fetch the mapping using workarounds (filters & a change in hibernate source code to enable filter for one-to-one). The problem is with save operation.. On Mon, Jul 6, 2009 at 12:44 PM, Max Rydahl Andersen < max...@re...> wrote: > > > Sandeep Vaid wrote: > > Max, > As per your suggestion , i have created a new improvement request > (HHH-4014) and added closed comments/Links to my previous obsolete > requests... > > As HHH-4014 is sure stopper for my, can you please let me know how can i > request for a quick resolution..? > > Provide a patch or get commercial support gives you a guaranteed reply. > > Note, you can still work with this mapping in hibernate, you just need to > query for it instead of navigating the object graph. > > /max > > > > > > On Sun, Jul 5, 2009 at 6:23 PM, Sandeep Vaid <cat...@gm...>wrote: > >> Max, >> I really appreciate your help.. >> >> These posts are mostly new feature request or improvement >> request... >> I explained the requested feature by explaining my my scenario as to why >> hibernate users require such a features.. >> By your reply, it looks to me that i should change the comments in my >> posting and put them in request feature/improvement category instead of bug >> category... >> >> HHH-4012<http://opensource.atlassian.com/projects/hibernate/browse/HHH-4012>& HHH-4013 are sure stopper for me.. >> Can u please suggest a way by which i can get a solution for these 2 >> improvements quickly. >> >> Thanks in advance.. >> >> On Fri, Jul 3, 2009 at 7:43 AM, Max Rydahl Andersen < >> max...@re...> wrote: >> >>> >>> >>> Sandeep Vaid wrote: >>> >>>> Max, >>>> Thanks for a very quick reply.... >>>> >>>> 1) I reported bugs etc.. to hibernate JIRA ( >>>> http://opensource.atlassian.com/projects/hibernate/secure/Dashboard.jspa) >>>> which went unanswered.. The following are few of them : >>>> HHH-3927, HHH-3897, HHH-3883 etc.. >>>> http://opensource.atlassian.com/projects/hibernate/browse/HHH-3927 >>>> http://opensource.atlassian.com/projects/hibernate/browse/HHH-3897 >>>> http://opensource.atlassian.com/projects/hibernate/browse/HHH-3883 >>> >>> All of these does not look like bugreports but as usage questions. Don't >>> expect getting answers to such in jira. >>> >>>> etc... >>>> There are total 13 unresolved issue which i have logged.. >>>> Moreover now i found few of them are incorrect, so want to change/delete >>>> those.. How can i delete those which are incorrect? >>> >>> if you dont have permission to Resolve an issue then at least at a >>> comment stating they are incorrect and you wish them to be resolved/closed. >>> >>> /max >>> >> >> >> >> -- >> Regards, >> Sandeep Vaid >> +91 - 09881710301 >> > > > > -- > Regards, > Sandeep Vaid > +91 - 09881710301 > > -- Regards, Sandeep Vaid +91 - 09881710301 |
From: Sandeep V. <cat...@gm...> - 2009-07-03 14:39:32
|
Max, 1) Hibernate JIRA: Is hibernate Jira ( http://opensource.atlassian.com/projects/hibernate/secure/Dashboard.jspa) active? Moreover i saw JBOSS JIRA for hibernate ( https://jira.jboss.org/jira/secure/IssueNavigator.jspa).. Are these different or same ? 2) I changed the hibernate source code. Hence one-to-one with filters are working fine in my case.. How can i contribute my changes to hibernate ? On Fri, Jul 3, 2009 at 7:04 PM, Max Rydahl Andersen <max...@re... > wrote: > > > Sandeep Vaid wrote: > >> Hi, >> I am using hibernate for sometime now.. I have the following queries : >> >> 1. I have found few bugs, improvement etc.. in hibernate and reported all >> of them to Hibernate JIRA and hibernate forum but no one has replied to any >> of my posts. Is Hibernate JIRA active or should i post somewhere else ? >> > which jira's ? > >> 2. I found that presently hibernate doesn't support filters with >> one-to-one associations.. I changed the hibernate source code for this and >> is now working fine. >> I want to contribute this change to hibernate.. Please let me know the >> procedure for the same. >> > create patch with testcase and add to jira describing what it should do. > > But I recall filtering for 1-to-1 as being inconsistent thus explicitly not > allowed. > > /max > -- Regards, Sandeep Vaid +91 - 09881710301 |
From: Sandeep V. <cat...@gm...> - 2009-07-03 13:21:09
|
Hi, I am using hibernate for sometime now.. I have the following queries : 1. I have found few bugs, improvement etc.. in hibernate and reported all of them to Hibernate JIRA and hibernate forum but no one has replied to any of my posts. Is Hibernate JIRA active or should i post somewhere else ? 2. I found that presently hibernate doesn't support filters with one-to-one associations.. I changed the hibernate source code for this and is now working fine. I want to contribute this change to hibernate.. Please let me know the procedure for the same. thanks in advance.!!! -- Regards, Sandeep Vaid +91 - 09881710301 |
From: Francisco R. E. <fri...@4m...> - 2009-06-18 21:05:08
|
Hello everyone!, I have a newbie question about hibernate, later of try and try to understand I cannot and then I m here, my question is the following: I have 3 Classes: Form.java / Question.java / Option.java in which I formulate the relationship like a survey: Form has many Questions / Questions has many Options ....and in code I have: Form.java: @OneToMany(mappedBy="form",cascade = CascadeType.ALL, fetch = FetchType.LAZY) private List<Question> questions = new ArrayList<Question>(); Question.java @ManyToOne (cascade = {CascadeType.PERSIST, CascadeType.MERGE}) public Form getForm() { return form; } @OneToMany(mappedBy="question",cascade = CascadeType.ALL, fetch = FetchType.EAGER) public List<OptionValue> getOptionValues() { return optionValues; } Option.java @ManyToOne public Question getQuestion() { return question; } Later when I try to Create a Form form another form already created... I have the following error: Object references an unsaved *transient instance* - *save the transient instance before flushing*: x.yyy.Question I don't understand very well the concept of cascade and how this works ...it seems that I want to save one option value before Question ? Its is the code for create other form from another: List questionsToAdd = formManager.getQuestionsById(new Long(idNewForm)); form.setQuestions(questionsToAdd); //formManager.saveForm(form); for(int i=0; i<questionsToAdd.size();i++){ Question questionOld = (Question) questionsToAdd.get(i); Question questionNew = new Question(); questionNew.setLabel(questionOld.getLabel()); questionNew.setTypeQuestion(questionOld.getTypeQuestion()); questionNew.setPosition(questionOld.getPosition()); questionNew.setHasOptionsToAdd(questionOld.getHasOptionsToAdd()); questionNew.setQuestionText(questionOld.getQuestionText()); questionNew.setForm(form); questionManager.saveQuestion(questionNew); List optionsToAdd = questionOld.getOptionValues(); for(int j=0; j<optionsToAdd.size();j++){ OptionValue optionValueOld = (OptionValue) optionsToAdd.get(j); OptionValue optionValueNew = new OptionValue(); optionValueNew.setValueOption(optionValueOld.getValueOption()); optionValueNew.setValue_column(optionValueOld.getValue_column()); optionValueNew.setValue_row(optionValueOld.getValue_row()); optionValueNew.setIsOptionColumn(optionValueOld.isIsOptionColumn()); optionValueNew.setIsOptionRow(optionValueOld.isIsOptionRow()); optionValueNew.setLabel(optionValueOld.getLabel()); optionValueNew.setImage(optionValueOld.getImage()); optionValueNew.setIsFieldOther(optionValueOld.isIsFieldOther()); optionValueNew.setValueFieldOther(optionValueOld.getValueFieldOther()); optionValueNew.setIsActive(optionValueOld.getIsActive()); optionValueNew.setType(optionValueOld.getType()); optionValueNew.setRangeBegin(optionValueOld.getRangeBegin()); optionValueNew.setRangeEnd(optionValueOld.getRangeEnd()); optionValueNew.setRangeStep(optionValueOld.getRangeStep()); optionValueNew.setQuestion(questionNew); optionManager.saveOptionValue(optionValueNew); } } Please I will be very greatfull if anyone can help me... Thanks in advance! -- Francisco Student Informatikingenieur |
From: Chris S. <inv...@mi...> - 2009-05-29 11:09:30
|
به میر حسین موسوی رای می دهیم: شبکه مجازی هواداران مهندس میر حسین موسوی در انتخابات ریاست جمهوری 1388 ایران -------------------- VIVAAA GREEEEEEN Click the link below to Join: http://mirhossein.ning.com/?xgi=1rAbEfr If your email program doesn't recognize the web address above as an active link, please copy and paste it into your web browser -------------------- Members already on به میر حسین موسوی رای می دهیم saeedeh eslami, Elaheh, میر حسین موسوی, طیبه قمصری, Elahe Saadati -------------------- About به میر حسین موسوی رای می دهیم اگر قرار باشد موجی در حمایت از مهندس موسوی در جامعه ایجاد شود جز با یاری جوانان مشتاق تغییر ممکن نخواهد بود. 55 members 18 photos 6 discussions -------------------- To control which emails you receive on the corner, or to opt-out, go to: http://mirhossein.ning.com/?xgo=8xva23hBpEc2T4rg0Qc7i9pf4nvD8x6/wu-3AIWqdDzpQY-KHfaWGaWfotzLwPF0Z8ZCzyLpIb4nMdWrpw6DWg |
From: Emanuel G. <est...@gm...> - 2009-04-29 14:16:04
|
Hi all, my name is Emanuel, i'm from Brazil and working with a large project using Hibernate, a great software. I just wondering if there is a way to implement Logical Delete with cascade in it easy. Any help will be appreciated, i need it quick for the project. Many thanks |
From: Mitchell, S. <Ste...@um...> - 2009-04-20 22:55:58
|
Assume you have two tables: Order and ChangeHistory. Order has a one-to-many relationship with ChangeHistory mapped to order.changeHistory. Order history has an update date. How can I do a select an Order based on a specific Date that the FIRST update occurred? In pseudo code this is what I am trying to do: order.getChangeHistory().get(0).getUpdateDate() = aDate -- OR -- order.getChangeHistory().get(0).getUpdateDate() between startDate and endDate Below would return any change history for a given date, not just the first change. final Criteria criteria = getSession().createCriteria( Order.class ); if ( searchCriteria.getUpdateDate() != null ) { criteria.createCriteria( "changeHistory" ).add( Restrictions.eq( "updateDate", searchCriteria.getUpdateDate() ) ); } How do I only get the OLDEST change for an order that happened on a given date? ------------------------------------------------------------------------------ NOTICE: This electronic mail message and any attached files are confidential. The information is exclusively for the use of the individual or entity intended as the recipient. If you are not the intended recipient, any use, copying, printing, reviewing, retention, disclosure, distribution or forwarding of the message or any attached file is not authorized and is strictly prohibited. If you have received this electronic mail message in error, please advise the sender by reply electronic mail immediately and permanently delete the original transmission, any attachments and any copies of this message from your computer system. Thank you. ============================================================================== |
From: Ganesh K. C. <gan...@gm...> - 2009-03-18 17:30:37
|
Hi, There is a method isAssociationFetch() in org.hibernate.event.LoadEvent class which returns boolean value . actually i have a situation in which i have "Person" class and this class has a reference of "Address" class . when the person class is loading the isAssociationFetch() method returns true . but it is the outermost class . so, could anybody tell me please what this method does actually and what is meaning of its return value ??? why is returns true for Person class ?? Thanks, Ganesh Destiny is not a matter of chance , it's a matter of choice.It's is not a thing to be waited for ,it's a thing to be achieved. |
From: zjk <jkz...@gm...> - 2009-01-16 20:30:44
|
hi all~ I meet a problem in my project as follow: update.jsp i update an item in the database in this page, and exactly it did --- as i found the updated data in the database. query.jsp in this page i used Criteria to query all the items, and it worked. but some time the result was wrong --- appeared with the pre-un-updated data. and some time the result was right --- appeared with the updated data. i can't found the exactly way to fix this problem , can anyone tell me the why?? thanks in advance ~ best! zjk 2009-01-17 |