Re: Struts 6.1.1. // Ok to migrate to JDK 17, Spring 6, Hibernate 6?

2023-03-01 Thread John
From "Lukasz Lenart" To "Struts Users Mailing List" Date 3/1/2023 1:12:27 AM Subject Re: Struts 6.1.1. // Ok to migrate to JDK 17, Spring 6, Hibernate 6? wt., 28 lut 2023 o 13:11 Burton Rhodes napisał(a):  Our team is considering a migration to Spring 6 and Hibernate 6 -

Re: Struts 6.1.1. // Ok to migrate to JDK 17, Spring 6, Hibernate 6?

2023-03-01 Thread Burton Rhodes
Well that's a good start. We may begin testing this to see what happens. Lukasz - many thanks as always. -- Original Message -- From "Lukasz Lenart" To "Struts Users Mailing List" Date 3/1/2023 1:12:27 AM Subject Re: Struts 6.1.1. // Ok to migrate to JDK

Re: Struts 6.1.1. // Ok to migrate to JDK 17, Spring 6, Hibernate 6?

2023-02-28 Thread Lukasz Lenart
wt., 28 lut 2023 o 13:11 Burton Rhodes napisał(a): > > Our team is considering a migration to Spring 6 and Hibernate 6 - which > require JDK 17 and use the new jakarta packages (among other things). Is > there anything within Struts 6.1.1 that would prevent such a migration? Rather

Struts 6.1.1. // Ok to migrate to JDK 17, Spring 6, Hibernate 6?

2023-02-28 Thread Burton Rhodes
Our team is considering a migration to Spring 6 and Hibernate 6 - which require JDK 17 and use the new jakarta packages (among other things). Is there anything within Struts 6.1.1 that would prevent such a migration?

Re: Struts2 JQuery plugin failed on Strut2 + Tiles + Hibernate project

2017-02-13 Thread Dave Newton
On Mon, Feb 13, 2017 at 11:24 AM, THAN_HVFC wrote: > org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter > - org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton

Struts2 JQuery plugin failed on Strut2 + Tiles + Hibernate project

2017-02-13 Thread THAN_HVFC
Hi all! I am new to Struts2.  I downloaded Strust-2.5.8-all which bundled with Tiles.   I created my web application with Strust-2.5.8 and Hibernate-5.1.  I deployed on Wildfly10 and the app ran fine.   Now I decide to add JQuery to my project.  So I downloaded  struts2-jquery-plugin-4.0.2 jar

Re: [struts-user] Re: struts2 json return null if involve hibernate or spring

2014-10-27 Thread john lee
What is the status of the Hibernate/JPA session at the time of the View rendering?  i just use the following session approach       in the application.xml                                       in the CartManagerImpl.java  public class CartManagerImpl implements CartManager  {     CartDao

RE: [struts-user] Re: struts2 json return null if involve hibernate or spring

2014-10-27 Thread Jason Pyeron
4 2:46 AM > Subject: Re: struts2 json return null if involve hibernate or spring > > 2014-10-27 3:55 GMT+01:00 john lee : > > > >  is hibernate dao manipulation could affect struts 2 json return? In my expereince yes, regarding lazy loading and caching. But your code

Re: struts2 json return null if involve hibernate or spring

2014-10-27 Thread john lee
the delete itself has no problem if called it directly.  From: Lukasz Lenart To: Struts Users Mailing List Sent: Monday, October 27, 2014 2:46 AM Subject: Re: struts2 json return null if involve hibernate or spring 2014-10-27 3:55 GMT+01:00 john lee : >  is hibernate

Re: struts2 json return null if involve hibernate or spring

2014-10-27 Thread Lukasz Lenart
2014-10-27 3:55 GMT+01:00 john lee : > is hibernate dao manipulation could affect struts 2 json return? > or spring framework could affect struts2 json return? > my program's struts2 json execution is success if not involve dao or spring > call. > but if involve hibernate/spr

struts2 json return null if involve hibernate or spring

2014-10-26 Thread john lee
is hibernate dao manipulation could affect struts 2 json return? or spring framework could affect struts2 json return? my program's struts2 json execution is success if not involve dao or spring call. but if involve hibernate/spring/dao manipulation, then json return is null and not ret

Any example integrate struts2 ( CRUD without Hibernate, nor EJB, nor Glassfish)

2014-10-20 Thread Chris
Hello, I would like to integrate struts2 in an CRUD application , JDBC, Apache Tomcat, Netbeans ( or eclipse ) but without Hibernate , nor EJB, nor GlassFish. Hibernate is more complex than the problem it tries to solveCould you have any integration example please ? Thanks, Regards, Chris

struts integrate with hibernate and spring

2014-10-19 Thread phoenix
I want to integrate struts2 with hibernate4 and spring4,but i don't know if  i need to use spring to manager struts action, is spring manager struts action better than struts manage action itself? Which method is better?  I am puzzled with how to integrate struts2 with hibernate4 and spring4, An

Re: How to implement multi tenancy with separate database in struts and hibernate?

2014-07-08 Thread Néstor Boscán
If you want to recreate this feature yourself with different databases you're going to have to map your entrypoint (initial URL) to your specific client and from there to the specific database datasource. Once you have the data source, associate it with the SessionFactory and everything will work c

Re: How to implement multi tenancy with separate database in struts and hibernate?

2014-07-08 Thread john feng
Oracle 12c should fit your needs. Unless you want to recreate this feature by your self. On Tue, Jul 8, 2014 at 5:36 AM, Kevin Peterson wrote: > Hi, > > We have an application wherein we want to keep separate database for each > client. We want to achieve this using multi tenancy approach. A wo

How to implement multi tenancy with separate database in struts and hibernate?

2014-07-08 Thread Kevin Peterson
Hi, We have an application wherein we want to keep separate database for each client. We want to achieve this using multi tenancy approach. A working example will be highly appreciated. Thanks, Kevin Peterson - To unsubscri

Re: Hibernate problem with OGNL

2013-03-27 Thread Lukasz Lenart
2013/3/27 Markus Demetz : > I think I've found the problem. > I had javassist 3.17.1 (latest) in my project but hibernate 4.2 ships with > version 3.15.0 > Now it seems to work! Yeah... this version is buggy :P I have tried update Ognl 3 to it but no luck ;-) Regards -- Łukasz

Re: Hibernate problem with OGNL

2013-03-27 Thread Markus Demetz
Hi, I think I've found the problem. I had javassist 3.17.1 (latest) in my project but hibernate 4.2 ships with version 3.15.0 Now it seems to work! Thank you, and sorry for misplacing my question here! Regards, Markus Am 27.03.2013 17:23, schrieb Steve Higham: On 27/03/2013 10:42, M

Re: Hibernate problem with OGNL

2013-03-27 Thread Steve Higham
works and then it reappears again. I'll ask at the hibernate forum. Regards, Markus - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org I've seen t

Re: Hibernate problem with OGNL

2013-03-27 Thread Markus Demetz
ask at the hibernate forum. Regards, Markus - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Hibernate problem with OGNL

2013-03-26 Thread Lukasz Lenart
2013/3/26 Markus Demetz : > Hi, > > I don't know if this is the right place to ask, but maybe there is anyone > who has experienced the same problem. > > I'm using Struts2 (latest version), with Hibernate (latest version) > My database models all have getId(). &

Hibernate problem with OGNL

2013-03-26 Thread Markus Demetz
Hi, I don't know if this is the right place to ask, but maybe there is anyone who has experienced the same problem. I'm using Struts2 (latest version), with Hibernate (latest version) My database models all have getId(). I have situations, where the getId() method of my model cla

RE: (OT) Hibernate question

2013-01-04 Thread Martin Gainty
an hour long discussion with a developer yesterday who said you *could* hint Hibernate predicates Our allotted teleconference time ran out before we could get into the exact details of how to hint a Hibernate query The concern for a potential client is to make all his Hibernate queries run

Re: (OT) Hibernate question

2013-01-04 Thread Dionis Argiri
Hi! It's not possible to add hints to Hibernate criteria queries/hql queries. But it's possible to add it if you use native query(but it's not your case, as I understand). BR, Dionis 2013/1/4 Martin Gainty > oes anyone know how to hint a Hiber

(OT) Hibernate question

2013-01-03 Thread Martin Gainty
Gentlemen This has been asked many times but i havent found an answer Does anyone know how to hint a Hibernate predicate with something like select /*+ index(emp_alias ix_emp) */ ... from scott.emp emp_alias Martin __ If computers were self-aware

Re: Store Interceptor not working with field error (using Hibernate validation)

2012-12-24 Thread Lukasz Lenart
2012/12/22 cyanoboy : > > > > class="org.apache.struts2.views.tiles.TilesResult" /> > > > > class="myStrutsSite.util.SessionCheckInterceptor"/> > > > > > You're

Re: Store Interceptor not working with field error (using Hibernate validation)

2012-12-22 Thread cyanoboy
m > > > > > > showinsertform > > > > > > > > > > > > > > RETRIEVE > > > > insert > > baseLayout > > > > > >

Re: Store Interceptor not working with field error (using Hibernate validation)

2012-12-21 Thread cyanoboy
insert baseLayout So, where is the problem? -- View this message in context: http://struts.1045723.n5.nabble.com/Store-Interceptor-not-working-with-field-error-using-Hibernate-validation-tp5711481p5711486.html Sent from the Struts - User mailing list archive at Nabble.com

Store Interceptor not working with field error (using Hibernate validation)

2012-12-21 Thread cyanoboy
I have a Jsp with some textfields, these are validate using Hibernate validation annotation (@Valid or @NotNull in the action) except one (input image file) that is validate with default Struts2 validation (using ActionName-validation.xml). I want to redirect to another action when the submitted

DAOImpl for hibernate got few general and specific questions

2012-09-14 Thread pirzada rashid
Hi, I have CustomerDAOImpl where I am doing CRUD. Few questions. *Q1 -* Should I declare Session at class level or each method level OR declare at class level and initialize at each method level? *Q2 -* When fetching data like in listCustomer, Should I session.beginTransaction(); and than commit

Re: struts2-fullhibernatecore-plugin-2.2.2-GA with struts2 and Hibernate

2012-09-14 Thread pirzada rashid
core-plugin-2.2.2-GA in a demo strut2 > > project with Hibernate. I tried my best but can not make it work. I am > > using all the latest jars. > > > > *Am I missing something?* > > > > Please help > > > > *ERROR LOG* > > > > 2012-09-14 02:

Re: struts2-fullhibernatecore-plugin-2.2.2-GA with struts2 and Hibernate

2012-09-14 Thread Alejandro
You must initializate session attribute. 2012/9/14 pirzada rashid > Hi, > > I am using struts2-fullhibernatecore-plugin-2.2.2-GA in a demo strut2 > project with Hibernate. I tried my best but can not make it work. I am > using all the latest jars. > > *Am I missing someth

struts2-fullhibernatecore-plugin-2.2.2-GA with struts2 and Hibernate

2012-09-14 Thread pirzada rashid
Hi, I am using struts2-fullhibernatecore-plugin-2.2.2-GA in a demo strut2 project with Hibernate. I tried my best but can not make it work. I am using all the latest jars. *Am I missing something?* Please help *ERROR LOG* 2012-09-14 02:06:50 - [ INFO - SessionTransactionInjectorInterceptor

FW: cant list data with hibernate struts

2012-03-15 Thread Oussama Jlassi
when i send my question it become disorganized and how to solve error > Date: Thu, 15 Mar 2012 14:02:35 -0400 > Subject: Re: FW: cant list data with hibernate struts > From: davelnew...@gmail.com > To: user@struts.apache.org > > Not sure; can't really read your post.

Re: FW: cant list data with hibernate struts

2012-03-15 Thread Dave Newton
Not sure; can't really read your post. It looks like there's a parsing error on the config. On Thu, Mar 15, 2012 at 1:48 PM, Oussama Jlassi wrote: > > all exist and in default package > > > Date: Wed, 14 Mar 2012 19:55:15 -0400 > > Subject: Re: cant list data

FW: cant list data with hibernate struts

2012-03-15 Thread Oussama Jlassi
all exist and in default package > Date: Wed, 14 Mar 2012 19:55:15 -0400 > Subject: Re: cant list data with hibernate struts > From: davelnew...@gmail.com > To: user@struts.apache.org > > Do all those classes in your config exist? Are they really all in the > default packa

Re: cant list data with hibernate struts

2012-03-14 Thread Dave Newton
t; ActionForm form,HttpServletRequest request, > HttpServletResponse response) throws Exception{ >HibForm formObj = (HibForm)form; >/*Get the servlet context */ServletContext > context = request.getSession().getServletContext(); >

cant list data with hibernate struts

2012-03-14 Thread Oussama Jlassi
st.getSession().getServletContext(); /*Retrieve Session Factory */ SessionFactory factory = (SessionFactory) context.getAttribute(HibernatePlugIn.SESSION_FACTORY_KEY); /*Open Hibernate Session */ Session session =factory.openSession();try {

Re: Struts2-json-plugin serialization issue with a Hibernate backed JPA entity

2011-09-07 Thread Ken McWilliams
set/2011 07.43, "Ken McWilliams" ha > scritto: > > I have a JPA entity, which hibernate is proxying. > > > > The following action works as it explicitly states the properties to > > include, however what I would much rather do is use excludeProperties to >

Re: Struts2-json-plugin serialization issue with a Hibernate backed JPA entity

2011-09-07 Thread Ken McWilliams
Solved! I've seen a number of posts relating to this issue but none with solutions... In searching for how $JAVASSIST_READ_WRITE_HANDLER came into existence we find: http://www.docjar.com/html/api/org/hibernate/tool/instrument/javassist/FieldTransformer.java.html There we can see the gette

Re: Struts2-json-plugin serialization issue with a Hibernate backed JPA entity

2011-09-06 Thread Maurizio Cucchiara
n McWilliams" ha scritto: > I have a JPA entity, which hibernate is proxying. > > The following action works as it explicitly states the properties to > include, however what I would much rather do is use excludeProperties to > remove the problematic property. The problem property

Struts2-json-plugin serialization issue with a Hibernate backed JPA entity

2011-09-06 Thread Ken McWilliams
I have a JPA entity, which hibernate is proxying. The following action works as it explicitly states the properties to include, however what I would much rather do is use excludeProperties to remove the problematic property. The problem property when serialized causes a "Positioned Updat

RE: How to implement EJB 3.0, JPA, Hibernate and Struts 2 in one application?

2011-08-15 Thread Marcus Bond
the underlying implementation for JPA would be hibernate.. job done. In answer to your second question, afaik Seam may be worth a look if you're after ejb webapps.. Marcus -Original Message- From: maurizio.cucchi...@gmail.com [mailto:maurizio.cucchi...@gmail.com] On Behalf Of Maurizi

Re: How to implement EJB 3.0, JPA, Hibernate and Struts 2 in one application?

2011-08-15 Thread Maurizio Cucchiara
I think this is a good starting point: http://s.apache.org/jpa Maurizio Cucchiara On 15 August 2011 07:05, Coolemma wrote: > EJB 3.0, JPA, Hibernate and Struts 2 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.

RE: struts2 & hibernate

2011-05-15 Thread Jason Pyeron
> -Original Message- > From: Dave Newton [mailto:davelnew...@gmail.com] > Sent: Sunday, May 15, 2011 19:31 > To: Struts Users Mailing List > Subject: Re: struts2 & hibernate > > On Sun, May 15, 2011 at 6:46 PM, Saeed Najahi > wrote: > > code that im

Re: struts2 & hibernate

2011-05-15 Thread Dave Newton
On Sun, May 15, 2011 at 6:46 PM, Saeed Najahi wrote: > code that implicates hibernate and struts, the documentation doesn't help > much unfortunatly, explanation or indication of what version of what jar is > needed isn't mentioned, Dependencies should be managed by Maven (

struts2 & hibernate

2011-05-15 Thread Saeed Najahi
hello guys, plz i need some help concerning struts 2.2.3 and hibernate 3.6.3, the problem i'm having is that the jars seem to keep fighting with each other :( exceptions that stop me from even daring to write a single line of code that implicates hibernate and struts, the documentation do

Re: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-11 Thread Burton Rhodes
o my business logic with my model, then I > should be ok? > >> -Original Message- >> From: Burton Rhodes [mailto:burtonrho...@gmail.com] >> Sent: Thursday, March 10, 2011 7:49 PM >> To: Struts Users Mailing List >> Subject: Re: RE: Re : Re : ModelDriven & Hi

RE: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-11 Thread CRANFORD, CHRIS
execute() method to my business logic with my model, then I should be ok? > -Original Message- > From: Burton Rhodes [mailto:burtonrho...@gmail.com] > Sent: Thursday, March 10, 2011 7:49 PM > To: Struts Users Mailing List > Subject: Re: RE: Re : Re : ModelDriven & Hibern

RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-11 Thread Martin Gainty
à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Thu, 10 Mar 2011 19:39:56 -0600 >

Re: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread Burton Rhodes
gt;> Dave et el - >> >> I can only conclude that either something is severely lost in my >> understanding of a Struts2 ModelDriven action coupled with Spring3 and >> Hibernate/JPA.  I have tried numerous configuration changes, >> annotations, etc and nothing has appear

Re: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread Burton Rhodes
, CHRIS wrote: > Dave et el - > > I can only conclude that either something is severely lost in my > understanding of a Struts2 ModelDriven action coupled with Spring3 and > Hibernate/JPA.  I have tried numerous configuration changes, > annotations, etc and nothing has appeared to av

RE: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread CRANFORD, CHRIS
Dave et el - I can only conclude that either something is severely lost in my understanding of a Struts2 ModelDriven action coupled with Spring3 and Hibernate/JPA. I have tried numerous configuration changes, annotations, etc and nothing has appeared to avoid allowing dirty data to make it to

RE: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread CRANFORD, CHRIS
Annotating @Transactional on the action didn't help. > -Original Message- > From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] > Sent: Thursday, March 10, 2011 1:41 AM > To: Struts Users Mailing List > Cc: CRANFORD, CHRIS > Subject: Re: RE: Re : Re :

RE: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread CRANFORD, CHRIS
Oh, learn something new every day :) > -Original Message- > From: Dave Newton [mailto:davelnew...@gmail.com] > Sent: Thursday, March 10, 2011 10:40 AM > To: CRANFORD, CHRIS > Cc: Struts Users Mailing List; Maurizio Cucchiara > Subject: Re: RE: Re : Re : ModelDriven &a

Re: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread Dave Newton
On Thu, Mar 10, 2011 at 11:38 AM, CRANFORD, CHRIS wrote: > Yes the plugin is in the app's lib directory. Just FYI, that sets the object factory to "spring", so Spring is instantiating your actions. (At least it used to.) Dave -

RE: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread CRANFORD, CHRIS
: Re : Re : ModelDriven & Hibernate Entities > > On Thu, Mar 10, 2011 at 11:32 AM, CRANFORD, CHRIS wrote: > > I don't use Spring to instantiate my actions, they're not defined > like that. > > And you're not using the S2 Spring plugin? (Just for the sake of > c

Re: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread Dave Newton
On Thu, Mar 10, 2011 at 11:32 AM, CRANFORD, CHRIS wrote: > I don't use Spring to instantiate my actions, they're not defined like that. And you're not using the S2 Spring plugin? (Just for the sake of completeness; I'm only marginally following this thread.) Dave

RE: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread CRANFORD, CHRIS
nt: Thursday, March 10, 2011 1:41 AM > To: Struts Users Mailing List > Cc: CRANFORD, CHRIS > Subject: Re: RE: Re : Re : ModelDriven & Hibernate Entities > > It's exactly what I meant (you can leave in your service class too). > The object factory must be spring and your cla

RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread CRANFORD, CHRIS
Martin - This is what has me confused. I don't believe that Hibernate's FLUSHMODE is even being set and I am starting to question if that is because of how I am using JPA in conjunction with Hibernate with Spring's transaction man

RE: ModelDriven & Hibernate Entities

2011-03-10 Thread adam pinder
and one with all collections initialised or somewhere in between. this gives me full control over persistence etc... adam > Subject: ModelDriven & Hibernate Entities > Date: Wed, 9 Mar 2011 11:34:32 -0600 > From: chris.cranf...@setech.com > To: user@struts.apache.org > > I h

Re: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-09 Thread Maurizio Cucchiara
2011 00:08, CRANFORD, CHRIS wrote: > In the Struts2 Action rather than my service class? > >> -Original Message- >> From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] >> Sent: Wednesday, March 09, 2011 4:20 PM >> To: Struts Users Mailing List >> Subj

RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-09 Thread Martin Gainty
ateEntityManager( properties ); return em; } http://docs.jboss.org/hibernate/core/3.2/api/org/hibernate/FlushMode.html Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nich

RE: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-09 Thread CRANFORD, CHRIS
In the Struts2 Action rather than my service class? > -Original Message- > From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] > Sent: Wednesday, March 09, 2011 4:20 PM > To: Struts Users Mailing List > Subject: Re: RE: Re : Re : ModelDriven & Hibernate Ent

Re: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-09 Thread Maurizio Cucchiara
Dave Newton [mailto:davelnew...@gmail.com] >> Sent: Wednesday, March 09, 2011 2:16 PM >> To: Struts Users Mailing List >> Subject: Re: Re : Re : ModelDriven & Hibernate Entities >> >> Another reason OSiV filters can be tricky. >> >> Dave >

RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-09 Thread CRANFORD, CHRIS
I still think this is related to my @Transactional annotation maybe. > -Original Message- > From: Dave Newton [mailto:davelnew...@gmail.com] > Sent: Wednesday, March 09, 2011 2:16 PM > To: Struts Users Mailing List > Subject: Re: Re : Re : ModelDriven & Hibernate En

Re: Re : Re : ModelDriven & Hibernate Entities

2011-03-09 Thread Dave Newton
ior to logging back in; I checked the database and noticed that the > record was in fact persisted with the changes from the form.  All I can > gather is the following: > > 1. Request comes in for Struts > 2. Hibernate Session opened via OSIV > 3. Model is loaded from DB via pre

RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-09 Thread CRANFORD, CHRIS
> Sent: Wednesday, March 09, 2011 1:35 PM > To: Struts Users Mailing List > Subject: Re: Re : Re : ModelDriven & Hibernate Entities > > It might just be an order of interceptors problem. One of your first > interceptors should be your login check. That should definitely

Re: Re : Re : ModelDriven & Hibernate Entities

2011-03-09 Thread Chris Pratt
can > gather is the following: > > 1. Request comes in for Struts > 2. Hibernate Session opened via OSIV > 3. Model is loaded from DB via prepare() > 4. Struts copies parameters into the model > 5. Validation/Interceptors fire > 6. Authentication Interceptor detects timed out se

RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-09 Thread CRANFORD, CHRIS
following: 1. Request comes in for Struts 2. Hibernate Session opened via OSIV 3. Model is loaded from DB via prepare() 4. Struts copies parameters into the model 5. Validation/Interceptors fire 6. Authentication Interceptor detects timed out session, returns LOGIN 7. User presented with login page

Re : Re : ModelDriven & Hibernate Entities

2011-03-09 Thread François Rouxel
OSIV pattern, hibernate call backend service when loading data...:-)) so your JSP is not just a view in that case I wrote my first mail thinking you wanna rollback after an exception occured. maybe it's gonna help others

Re: Re : ModelDriven & Hibernate Entities

2011-03-09 Thread Dave Newton
On Wed, Mar 9, 2011 at 1:09 PM, CRANFORD, CHRIS wrote: > I wouldn't place anything Hibernate or persistence related in > my JSP pages at all.  In my mind, this breaks the entire > reasoning behind MVC and the view simply there to render data IMO OSiV filters put non-render stuf

RE: Re : ModelDriven & Hibernate Entities

2011-03-09 Thread CRANFORD, CHRIS
Francois - While that may work for you, I wouldn't place anything Hibernate or persistence related in my JSP pages at all. In my mind, this breaks the entire reasoning behind MVC and the view simply there to render data. If the view is doing anything beyond that, I have a design problem

Re : ModelDriven & Hibernate Entities

2011-03-09 Thread François Rouxel
In your struts mapping file : /error.jsp hope it will help you - Message d'origine De : "CRANFORD, CHRIS" À : Struts Users Mailing List Envoyé le : Mer 9 mars 2011, 12h 34min 32s Objet : ModelDriven

ModelDriven & Hibernate Entities

2011-03-09 Thread CRANFORD, CHRIS
ModelDriven to have several drawbacks. For example, by using the OSIV (Open Session In View) filter, I am finding that when Struts sets the properties on the entity and afterward if an exception is thrown, caught and handled and doesn't trigger Hibernate to actually "rollback";

RE: generate SQL Hibernate Query using session

2011-02-17 Thread Jerson John
ject: RE: generate SQL Hibernate Query using session Jerson - What I would likely suggest you consider is creating a DTO object that resembles your result from the SQLQuery. You can then use one of the stock Hibernate Transformers to convert the SQL results into instances of this DTO Bean and t

RE: generate SQL Hibernate Query using session

2011-02-17 Thread Jerson John
Users Mailing List Subject: RE: generate SQL Hibernate Query using session Jerson - What I would likely suggest you consider is creating a DTO object that resembles your result from the SQLQuery. You can then use one of the stock Hibernate Transformers to convert the SQL results into instances of

RE: generate SQL Hibernate Query using session

2011-02-17 Thread CRANFORD, CHRIS
Jerson - What I would likely suggest you consider is creating a DTO object that resembles your result from the SQLQuery. You can then use one of the stock Hibernate Transformers to convert the SQL results into instances of this DTO Bean and then you can return the beans to your view to iterate

Re: generate SQL Hibernate Query using session

2011-02-17 Thread Mead Lai
I think you may use the Composite Class in Hibernate. Query q = session.createQuery (" select new NewCompositeClass(members, classInfo.className) " + " from Members members, ClassInfo classInfo " + " where members.level = classInfo.classCode "); and you need

RE: generate SQL Hibernate Query using session

2011-02-17 Thread Jerson John
error...I couldn't find any Thanks in advance Many Thanks and Regards, Jerson From: Jerson John [mailto:jer...@cprvision.com] Sent: Friday, February 18, 2011 10:53 AM To: 'Struts Users Mailing List' Subject: RE: generate SQL Hibernate Query using session Hi, Thanks for your

RE: generate SQL Hibernate Query using session

2011-02-17 Thread Jerson John
ce in properties.Please advice me a approach for thisThanks in advance Many Thanks and Regards, Jerson -Original Message- From: Dave Newton [mailto:davelnew...@gmail.com] Sent: Friday, February 18, 2011 10:34 AM To: Struts Users Mailing List Subject: Re: generate SQL Hibernate Query using se

Re: generate SQL Hibernate Query using session

2011-02-17 Thread Dave Newton
What does having joins have to do with not being able to map to your data model? Dave On Feb 17, 2011 8:43 PM, "Jerson John" wrote: > Hi, > I am trying to generate SQL query using session.createSQLQuery and > returning the list object..This select query contains joins and so it cannot > be mappe

generate SQL Hibernate Query using session

2011-02-17 Thread Jerson John
Hi, I am trying to generate SQL query using session.createSQLQuery and returning the list object..This select query contains joins and so it cannot be mapped to any of my model objects.How can I now get the values in my jsp page using iterator tag in Struts 2... Please help me on this Many Than

Re: RE: JSON Error - Hibernate Entities

2011-02-14 Thread Maurizio Cucchiara
O. All of the properties in the POJO are serializable :=/. > >> -Original Message- >> From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] >> Sent: Monday, February 14, 2011 2:40 AM >> To: Struts Users Mailing List >> Subject: Re: JSON Error - Hibernate Enti

RE: JSON Error - Hibernate Entities

2011-02-14 Thread CRANFORD, CHRIS
Struts Users Mailing List > Subject: Re: JSON Error - Hibernate Entities > > Your Item class is a simple POJO [1], isn't it? > Have you tried to use a DTO [2] object and see what happens? > > [1] http://en.wikipedia.org/wiki/Plain_Old_Java_Object >

Re: JSON Error - Hibernate Entities

2011-02-14 Thread Maurizio Cucchiara
t that before it > finally puked so I'm not sure if because my object graph has these > circular references if that is creating problems for it or not. > >> -Original Message- >> From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] >> Sent: Monday, F

RE: JSON Error - Hibernate Entities

2011-02-13 Thread CRANFORD, CHRIS
.@gmail.com] > Sent: Monday, February 14, 2011 1:12 AM > To: Struts Users Mailing List > Subject: Re: JSON Error - Hibernate Entities > > Could you post your struts.xml and the action which you're trying to > serialize? > I'm pretty sure that your action class contains a re

Re: JSON Error - Hibernate Entities

2011-02-13 Thread Maurizio Cucchiara
guration inside the struts.xml file. Maurizio Cucchiara Il giorno 14/feb/2011 07.19, "CRANFORD, CHRIS" ha scritto: I am trying to return a list of hibernate entities to my AJAX call; however, I get the following error message when JSONWriter tries to serialize the objects. Can anyone

JSON Error - Hibernate Entities

2011-02-13 Thread CRANFORD, CHRIS
I am trying to return a list of hibernate entities to my AJAX call; however, I get the following error message when JSONWriter tries to serialize the objects. Can anyone explain why I am getting this error and if there is something I can do to avoid it so I can pass my objects back via a JSON

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread abhishek jain
On Sat, Feb 12, 2011 at 9:47 PM, Dave Newton wrote: > On Sat, Feb 12, 2011 at 10:58 AM, abhishek jain > wrote: > > I am not doing any dependency management, i am just relying on myeclipse, > > what is the best way, > > I'm not sure; I haven't used MyEclipse in some time (but I did for > quite aw

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread Dave Newton
On Sat, Feb 12, 2011 at 10:58 AM, abhishek jain wrote: > I am not doing any dependency management, i am just relying on myeclipse, > what is the best way, I'm not sure; I haven't used MyEclipse in some time (but I did for quite awhile; very often worth the (minimal) cost. I would strongly pursue

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread abhishek jain
On Sat, Feb 12, 2011 at 8:12 PM, Dave Newton wrote: > On Sat, Feb 12, 2011 at 9:39 AM, abhishek jain > wrote: > > no, i am not that experienced in java to do dependency management > manually, > > i just tried removing the library after the probelm just in case it > solved > > How are you doing d

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread Dave Newton
On Sat, Feb 12, 2011 at 9:39 AM, abhishek jain wrote: > no, i am not that experienced in java to do dependency management manually, > i just tried removing the library after the probelm just in case it solved How are you doing dependency management? Dave

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread abhishek jain
> > Are you attempting to do dependency management manually?! > > Dave > > > On Sat, Feb 12, 2011 at 9:32 AM, abhishek jain > wrote: > > hi, > > I am using myeclipse , and using its own default classpath. > > I have two antlr-2.7.2.jar in Struts core lib

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread Dave Newton
.jar in Struts core libraries and antlr-2.7.6.jar in > hibernate core libraries. > > I tried removing antlr-2.7.2.jar  and still the problem persists. > > thanks > abhishek > > > On Sat, Feb 12, 2011 at 7:05 PM, Maurizio Cucchiara < > maurizio.cucchi...@gmail.com>

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread abhishek jain
hi, I am using myeclipse , and using its own default classpath. I have two antlr-2.7.2.jar in Struts core libraries and antlr-2.7.6.jar in hibernate core libraries. I tried removing antlr-2.7.2.jar and still the problem persists. thanks abhishek On Sat, Feb 12, 2011 at 7:05 PM, Maurizio

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread Maurizio Cucchiara
t; ha scritto: > hi, > I am running a simple search of a product via Hibernate on struts code, > the code runs fine when i run via a function in public static void main > > when i run the same code via struts i get the following exception, > the code is: > > public static

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread Dave Newton
Chances are you're not running using the same classpath. Dave On Sat, Feb 12, 2011 at 8:20 AM, abhishek jain wrote: > hi, > I am running a simple search of a product via Hibernate on struts code, > the code runs fine when i run via a function in public static void main > >

error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread abhishek jain
hi, I am running a simple search of a product via Hibernate on struts code, the code runs fine when i run via a function in public static void main when i run the same code via struts i get the following exception, the code is: public static void main(String[] args) { ProductsDAO pd

Re: Decent tutorial or working example of Hibernate 3 + Struts 2 +Tiles 2 on myeclipse

2011-02-10 Thread Emi Lu
Good morning, Although I did not use hibernate but mybatis - struts2 + tiles2.0.7 + mybatis3, I had the similar problem long time ago. It was related to the tiles version. If I use tiles 2.2.2, I have an exception. But with 2.0.7, no compile error. You may try. -- Lu Ying On 02/10

  1   2   3   4   5   6   7   8   9   10   >