smartweb-user Mailing List for SmartWeb (Page 3)
Brought to you by:
rlogiacco
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(1) |
Feb
(2) |
Mar
(1) |
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
(14) |
May
(20) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
(9) |
Nov
|
Dec
|
2009 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
(2) |
Jun
(7) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(5) |
Nov
|
Dec
|
From: Rocco F. <rfu...@sm...> - 2008-05-07 13:09:37
|
Hello everyone, I noticed a problem with auth, in practice I create the script to generate the database (I use ANT or MAVEN) and I run into postgre to create tables. After that I made the test to insert a Group manually and after to cancel but just delete the line in the table GROUP while the associated row in the table SUBJECT not erase. I check the script and apparently is not created the rule on the cancellation which is required by default to "ON UPDATE NO ACTION ON DELETE NO ACTION." But if the operations erasure are made directly from the code with smartweb everything works properly. I wanted to know then how can create the script sql them properly? Hello Rocco |
From: Rocco F. <rfu...@sm...> - 2008-05-04 18:02:51
|
Ciao a tutti, Ho un problema o meglio non so quali sono i valori di default per inizializzare il db di auth. Qualcuno sa dove posso reperirli o come posso generarli?. Grazie. |
From: Roberto Lo G. <rlo...@sm...> - 2008-04-30 15:36:30
|
Hi all, I wish to inform you we have finally managed to perform a new release of the smartweb project and main module: smartweb 1.2.4 smartweb-test 1.0.3 templates 1.2.4 smartweb-auth 0.8.0 It costed a lot of work, but we are now one step nearer to the goal as all releases are more stable than previous one, especially the auth module. Thanks to everyone partecipated into this achievement! -- Roberto Lo Giacco |
From: Stefano V <st...@gm...> - 2008-04-29 09:41:15
|
normally this work is delegated to hibernate hbm2ddl function. you can use it adding <property name="hbm2ddl.auto">update</property> in your smartweb.jar.hcf in smartweb framework or in hibernate.cfg.xml in hibernate standalone. 2008/4/29 Sébastien LE CALLONNEC <sl...@ya...>: > What I meant by "creating the schema" was: creating the tables, setting up > the constraints and indexes, executing the grants, etc. > > > Regards, > Sébastien. > > ----- Message d'origine ---- > De : Stefano V <st...@gm...> > À : Smartweb framework users discussions < > sma...@li...> > Envoyé le : Mardi, 29 Avril 2008, 10h20mn 51s > Objet : Re: [smartweb-user] Re : Re : Dev Environment Setup > > > I mean that maven ( with hibernate plugin ) can generate sql scripts, but > this script are without the sql "create schema" instrunction inside them... > just yesterday i committed a new pom version on svn repository. Now > smartweb-auth module can generate 3 example schema for 3 different db ( > hsqldb postgresql mysql ) . As soon as i'll do a new release > > bye > Stefano Vetrini > > 2008/4/26 Roberto Lo Giacco <rlo...@sm...>: > >> Just to clarify the two answers: >> >> if with the term "schema" you mean the database DDL the mvn >> process-classes will do the trick, but you have to change the dialect >> to match the correct database >> >> if with "schema" you mean the database schema, the preceeding >> procedure will generate only TABLE, SEQUENCE, CONSTRAINTS, etc... >> definitions but will not create the SCHEMA itself: you should create >> an AUTH schema by yourself. >> >> >> 2008/4/25 Stefano V <st...@gm...>: >> > Hello >> > Hibernate (I think..) doesn't support schema generation and consequently >> > smartweb too. you must do it "handmade" ... >> > If you use the hibernate feature to generate tables >> > >> > i.e. >> > <property name="hbm2ddl.auto">create</property> >> > inside smartweb.jar.hcf >> > >> > You have to create the schema script (in your own db dialect) before use >> > application. >> > >> > bye >> > Stefano Vetrini >> > >> > >> > 2008/4/24 Sébastien LE CALLONNEC <sl...@ya...>: >> > >> > > >> > > >> > > Hi All, >> > > >> > > Is there any script that can be executed to create the db schema for >> auth? >> > The only ones I've found so far are grants and inserts. >> > > >> > > >> > > >> > > Thanks, >> > > Sébastien. >> > >> > >> > >> ------------------------------------------------------------------------- >> > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> > Don't miss this year's exciting event. There's still time to save $100. >> > Use priority code J8TL2D2. >> > >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> > _______________________________________________ >> > smartweb-user mailing list >> > sma...@li... >> > https://lists.sourceforge.net/lists/listinfo/smartweb-user >> > >> > >> >> >> >> -- >> Roberto Lo Giacco >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save $100. >> Use priority code J8TL2D2. >> >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> _______________________________________________ >> smartweb-user mailing list >> sma...@li... >> https://lists.sourceforge.net/lists/listinfo/smartweb-user >> > > > __________________________________________________ > Do You Yahoo!? > En finir avec le spam? Yahoo! Mail vous offre la meilleure protection > possible contre les messages non sollicités > http://mail.yahoo.fr Yahoo! Mail > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > smartweb-user mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-user > > |
From: Sébastien LE C. <sl...@ya...> - 2008-04-29 09:32:30
|
What I meant by "creating the schema" was: creating the tables, setting up the constraints and indexes, executing the grants, etc. Regards, Sébastien. ----- Message d'origine ---- De : Stefano V <st...@gm...> À : Smartweb framework users discussions <sma...@li...> Envoyé le : Mardi, 29 Avril 2008, 10h20mn 51s Objet : Re: [smartweb-user] Re : Re : Dev Environment Setup I mean that maven ( with hibernate plugin ) can generate sql scripts, but this script are without the sql "create schema" instrunction inside them... just yesterday i committed a new pom version on svn repository. Now smartweb-auth module can generate 3 example schema for 3 different db ( hsqldb postgresql mysql ) . As soon as i'll do a new release bye Stefano Vetrini 2008/4/26 Roberto Lo Giacco <rlo...@sm...>: Just to clarify the two answers: if with the term "schema" you mean the database DDL the mvn process-classes will do the trick, but you have to change the dialect to match the correct database if with "schema" you mean the database schema, the preceeding procedure will generate only TABLE, SEQUENCE, CONSTRAINTS, etc... definitions but will not create the SCHEMA itself: you should create an AUTH schema by yourself. 2008/4/25 Stefano V <st...@gm...>: > Hello > Hibernate (I think..) doesn't support schema generation and consequently > smartweb too. you must do it "handmade" ... > If you use the hibernate feature to generate tables > > i.e. > <property name="hbm2ddl.auto">create</property> > inside smartweb.jar.hcf > > You have to create the schema script (in your own db dialect) before use > application. > > bye > Stefano Vetrini > > > 2008/4/24 Sébastien LE CALLONNEC <sl...@ya...>: > > > > > > > Hi All, > > > > Is there any script that can be executed to create the db schema for auth? > The only ones I've found so far are grants and inserts. > > > > > > > > Thanks, > > Sébastien. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > smartweb-user mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-user > > -- Roberto Lo Giacco ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ smartweb-user mailing list sma...@li... https://lists.sourceforge.net/lists/listinfo/smartweb-user __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités http://mail.yahoo.fr Yahoo! Mail |
From: Stefano V <st...@gm...> - 2008-04-29 09:20:59
|
I mean that maven ( with hibernate plugin ) can generate sql scripts, but this script are without the sql "create schema" instrunction inside them... just yesterday i committed a new pom version on svn repository. Now smartweb-auth module can generate 3 example schema for 3 different db ( hsqldb postgresql mysql ) . As soon as i'll do a new release bye Stefano Vetrini 2008/4/26 Roberto Lo Giacco <rlo...@sm...>: > Just to clarify the two answers: > > if with the term "schema" you mean the database DDL the mvn > process-classes will do the trick, but you have to change the dialect > to match the correct database > > if with "schema" you mean the database schema, the preceeding > procedure will generate only TABLE, SEQUENCE, CONSTRAINTS, etc... > definitions but will not create the SCHEMA itself: you should create > an AUTH schema by yourself. > > > 2008/4/25 Stefano V <st...@gm...>: > > Hello > > Hibernate (I think..) doesn't support schema generation and consequently > > smartweb too. you must do it "handmade" ... > > If you use the hibernate feature to generate tables > > > > i.e. > > <property name="hbm2ddl.auto">create</property> > > inside smartweb.jar.hcf > > > > You have to create the schema script (in your own db dialect) before use > > application. > > > > bye > > Stefano Vetrini > > > > > > 2008/4/24 Sébastien LE CALLONNEC <sl...@ya...>: > > > > > > > > > > > Hi All, > > > > > > Is there any script that can be executed to create the db schema for > auth? > > The only ones I've found so far are grants and inserts. > > > > > > > > > > > > Thanks, > > > Sébastien. > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > _______________________________________________ > > smartweb-user mailing list > > sma...@li... > > https://lists.sourceforge.net/lists/listinfo/smartweb-user > > > > > > > > -- > Roberto Lo Giacco > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > smartweb-user mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-user > |
From: Roberto Lo G. <rlo...@sm...> - 2008-04-28 10:18:20
|
Ladies and gentlemans, I'm proud to announce I've finally managed to update the website with all the contents and stuff Anna have collected these days, including an update to the home page layout as suggested. Please give any feedback you can: we wish to continue improving the documentation! Thank you all, Roberto |
From: Roberto Lo G. <rlo...@sm...> - 2008-04-26 10:03:26
|
Just to clarify the two answers: if with the term "schema" you mean the database DDL the mvn process-classes will do the trick, but you have to change the dialect to match the correct database if with "schema" you mean the database schema, the preceeding procedure will generate only TABLE, SEQUENCE, CONSTRAINTS, etc... definitions but will not create the SCHEMA itself: you should create an AUTH schema by yourself. 2008/4/25 Stefano V <st...@gm...>: > Hello > Hibernate (I think..) doesn't support schema generation and consequently > smartweb too. you must do it "handmade" ... > If you use the hibernate feature to generate tables > > i.e. > <property name="hbm2ddl.auto">create</property> > inside smartweb.jar.hcf > > You have to create the schema script (in your own db dialect) before use > application. > > bye > Stefano Vetrini > > > 2008/4/24 Sébastien LE CALLONNEC <sl...@ya...>: > > > > > > > Hi All, > > > > Is there any script that can be executed to create the db schema for auth? > The only ones I've found so far are grants and inserts. > > > > > > > > Thanks, > > Sébastien. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > smartweb-user mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-user > > -- Roberto Lo Giacco |
From: Stefano V <st...@gm...> - 2008-04-25 20:13:44
|
Hello Hibernate (I think..) doesn't support schema generation and consequently smartweb too. you must do it "handmade" ... If you use the hibernate feature to generate tables i.e. <property name="hbm2ddl.auto">create</property> inside smartweb.jar.hcf You have to create the schema script (in your own db dialect) before use application. bye Stefano Vetrini 2008/4/24 Sébastien LE CALLONNEC <sl...@ya...>: > Hi All, > > Is there any script that can be executed to create the db schema for auth? > The only ones I've found so far are grants and inserts. > > > > Thanks, > Sébastien. > |
From: Roberto Lo G. <rlo...@sm...> - 2008-04-24 22:17:38
|
Hi Sébastien , it's nice to hear again from you! ;-) Sébastien LE CALLONNEC wrote: > Hi All, > > Is there any script that can be executed to create the db schema for > auth? The only ones I've found so far are grants and inserts. > It can be generated issuing the command mvn process-classes which generates a file named schema.sql into the res folder Actually we are not including the generated ones as it will change on a per database engine basis, anyway I think in the long term we should make those pre-generated scripts (one for each database we decide to officially support) available for download through the website or the wiki. Please, help us know what you think is the right place. We'll continue this topic on the development forum if you agree. Roberto |
From: Sébastien LE C. <sl...@ya...> - 2008-04-24 21:46:28
|
Hi All, Is there any script that can be executed to create the db schema for auth? The only ones I've found so far are grants and inserts. Thanks, Sébastien. ----- Message d'origine ---- De : Sébastien LE CALLONNEC <sl...@ya...> À : Smartweb framework users discussions <sma...@li...> Envoyé le : Vendredi, 18 Avril 2008, 6h10mn 04s Objet : [smartweb-user] Re : Dev Environment Setup Hi Roberto, Ok, I've logged out and back in again, and this time it worked. It doesn't quite make sense to me, but at least I've been able to add the pictures now. With regards to Eclipse, I'm using Europa Winter indeed (3.3.2), along with JBoss Tools 2.0.1. I have added those details to the page. Regards, Sébastien. ----- Message d'origine ---- De : Roberto Lo Giacco <rlo...@sm...> À : Smartweb framework users discussions <sma...@li...> Envoyé le : Jeudi, 17 Avril 2008, 16h28mn 13s Objet : Re: [smartweb-user] Dev Environment Setup Hi Sebastien, first of all thank you for your contribution. About your issue with the wiki 2008/4/17 Sébastien LE CALLONNEC <sl...@ya...>: > progress, but I think you may have some feedback on this (there's supposed > to be screenshots too, but it looks like I don't have permissions to upload > files). Here is the link: http://smartweb.wikidot.com/devenvironmentsetup I double checked the configuration and if I've to trust the wikidot permissions configuration page I should say all site members are allowed to upload files in the _default scope. Can you please double check you are not allowed to upload files? May be the wikidot page is lying to me (meaning the real configuration doesn't match what is displayed on the web) but it sounds strange to me. > I am basically trying to run a Smartweb application in Eclipse Java EE + > JBoss Tools, so if you have any input in that matter, feel free to update > the page! That might prove useful to potential users who want to assess > Smartweb. Can you give us more details about the configuration you are trying? Is that Eclipse Europa with EE plugins? which specific version? If I'm not wrong there should be 3.0.2 out there. -- Roberto Lo Giacco ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ smartweb-user mailing list sma...@li... https://lists.sourceforge.net/lists/listinfo/smartweb-user __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités http://mail.yahoo.fr Yahoo! Mail __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités http://mail.yahoo.fr Yahoo! Mail |
From: Sébastien LE C. <sl...@ya...> - 2008-04-18 05:10:14
|
Hi Roberto, Ok, I've logged out and back in again, and this time it worked. It doesn't quite make sense to me, but at least I've been able to add the pictures now. With regards to Eclipse, I'm using Europa Winter indeed (3.3.2), along with JBoss Tools 2.0.1. I have added those details to the page. Regards, Sébastien. ----- Message d'origine ---- De : Roberto Lo Giacco <rlo...@sm...> À : Smartweb framework users discussions <sma...@li...> Envoyé le : Jeudi, 17 Avril 2008, 16h28mn 13s Objet : Re: [smartweb-user] Dev Environment Setup Hi Sebastien, first of all thank you for your contribution. About your issue with the wiki 2008/4/17 Sébastien LE CALLONNEC <sl...@ya...>: > progress, but I think you may have some feedback on this (there's supposed > to be screenshots too, but it looks like I don't have permissions to upload > files). Here is the link: http://smartweb.wikidot.com/devenvironmentsetup I double checked the configuration and if I've to trust the wikidot permissions configuration page I should say all site members are allowed to upload files in the _default scope. Can you please double check you are not allowed to upload files? May be the wikidot page is lying to me (meaning the real configuration doesn't match what is displayed on the web) but it sounds strange to me. > I am basically trying to run a Smartweb application in Eclipse Java EE + > JBoss Tools, so if you have any input in that matter, feel free to update > the page! That might prove useful to potential users who want to assess > Smartweb. Can you give us more details about the configuration you are trying? Is that Eclipse Europa with EE plugins? which specific version? If I'm not wrong there should be 3.0.2 out there. -- Roberto Lo Giacco ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ smartweb-user mailing list sma...@li... https://lists.sourceforge.net/lists/listinfo/smartweb-user __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités http://mail.yahoo.fr Yahoo! Mail |
From: Roberto Lo G. <rlo...@sm...> - 2008-04-17 15:28:29
|
Hi Sebastien, first of all thank you for your contribution. About your issue with the wiki 2008/4/17 Sébastien LE CALLONNEC <sl...@ya...>: > progress, but I think you may have some feedback on this (there's supposed > to be screenshots too, but it looks like I don't have permissions to upload > files). Here is the link: http://smartweb.wikidot.com/devenvironmentsetup I double checked the configuration and if I've to trust the wikidot permissions configuration page I should say all site members are allowed to upload files in the _default scope. Can you please double check you are not allowed to upload files? May be the wikidot page is lying to me (meaning the real configuration doesn't match what is displayed on the web) but it sounds strange to me. > I am basically trying to run a Smartweb application in Eclipse Java EE + > JBoss Tools, so if you have any input in that matter, feel free to update > the page! That might prove useful to potential users who want to assess > Smartweb. Can you give us more details about the configuration you are trying? Is that Eclipse Europa with EE plugins? which specific version? If I'm not wrong there should be 3.0.2 out there. -- Roberto Lo Giacco |
From: Sébastien LE C. <sl...@ya...> - 2008-04-17 12:34:43
|
Hi All, I have been trying to setup my dev environment to get started with Smartweb, and I have been documenting the steps along the way. It is still work in progress, but I think you may have some feedback on this (there's supposed to be screenshots too, but it looks like I don't have permissions to upload files). Here is the link: http://smartweb.wikidot.com/devenvironmentsetup I am basically trying to run a Smartweb application in Eclipse Java EE + JBoss Tools, so if you have any input in that matter, feel free to update the page! That might prove useful to potential users who want to assess Smartweb. Thanks for your comments, Sébastien. __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités http://mail.yahoo.fr Yahoo! Mail |
From: Pino C. <gco...@gm...> - 2008-04-14 08:29:59
|
Hello everyone, I tried to update an address of a person in a single transaction, the main problem is that not having the necessary methods to change an address directly from the person I tried to remove the old and adding the address as new but I Hibernate throw an exception: The row has been updated or deleted by another transaction . I think it's impossible to update an old address of a person an then update the related person ! How can i do it? Why in Person class i have all the method to get the right address and I haven't all the methods to modify them? Is it right to introduce a method with the follow signature inside Entity class? public void updateAddress(Address old,Address new_) ? Waiting for your reply -- View this message in context: http://www.nabble.com/-Smartweb-registry--Entity---How-to-update-an-address-to-its-entity-tp16673823s17546p16673823.html Sent from the SmartWeb Users mailing list archive at Nabble.com. |
From: Pino C. <gco...@gm...> - 2008-04-12 12:09:03
|
Hy all, while using valorize or populate Action method I noticed it doesn't valorizes/populates nested bean's properties. I try to report an example using registry module : For I.e : Person is composed by a Name so..how can i populate/valorize its properties ? I use a <formbean> in struts.xml defined in this way : <form-bean name="contactForm" type="org.apache.struts.validator.DynaValidatorForm"> <form-property name="id" type="java.lang.String"/> <form-property name="firstname" type="java.lang.String"/> <form-property name="lastname" type="java.lang.String" /> <form-property name="age" type="java.lang.String" /> </form-bean> ..... ..... PersonAction public String select(ActionForm form, HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws ActionException { String id = request.getParameter("id"); Person customer; if (id != null && !id.equals("0")) { customer = (Person) net.smartlab.web.registry.Domain.getInstance().findEntry(id); super.populate(form, customer, Locale.ITALY); //I would like to avoid this part of code //DynaActionForm dform = (DynaActionForm) form; //if (customer.getName() != null) { //dform.set("firstname", customer.getName().getFirstname()); //dform.set("lastname", customer.getName().getLastname()); //} ...... } I would like to avoid commented code ,delegating super.populate to do it. Is it possible? There some method that I don't know ? Waiting for replay... Thanks -- View this message in context: http://www.nabble.com/How-to-use-DynaActionForm-with-nested-beans-tp16648680s17546p16648680.html Sent from the SmartWeb Users mailing list archive at Nabble.com. |
From: rlogiacco <rlo...@us...> - 2007-06-05 13:26:18
|
Pino Contartese wrote: >=20 > Need a control of IntegrityReference when we try to remove an Object from > data-base. > Maybe the Object is referenced from another table in the database and we > must implement a logical remove method. >=20 Well, we actually have such a method into the Hibernate API, the only sad thing is it's quite reverted. When you create the Hibernate Mapping (.hbm file) you can specify the cascading style (more on this on the official Hibernate documentation, specifically on=20 http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#example-pare= ntchild-cascades parent-child cascade and=20 http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#objectstate-= transitive transitive state ) which can allow you to manage consistency about your objects. Pino Contartese wrote: >=20 > A possible solution for this problem is: > 1) Insert IntegrityReferenceException in > net.smartlab.web.BusinessObjectFactory in the method remove > so the last user is forced to manage this Exception and to implement a > logic while removing an Object from DB. > 2) Create a method isRemovible(Object o) in the class referenced that ca= n > throws an IntegrityReferenceException > Es.: I have to remove a CommessaObject from my Db and it's just reference= d > from a ProgettoObject and AttivitaObject. >=20 What I figure out from your statement is that you wish to handle this cascading manually instead of automatically and beyond your back: am I right? Can I ask you why do you need to handle those things programmatically? For the sake of speeking: do you want to delete all your Progetto and Attivita when you delete Commessa or do you want to avoid deletion of Commessa if there is a Progetto or Attivit=C3=A0 linked to it? In the first case you just need to set the cascade style of your Commessa t= o all-delete-orphan, in the second to something more restictive like all or something lesser. Obviously I coul have not understood your point at all, in which case I jus= k ask you to explain it further... --=20 View this message in context: http://www.nabble.com/Entity--IntegrityRefere= nceException-tf3871534s17546.html#a10969404 Sent from the SmartWeb Users mailing list archive at Nabble.com. |
From: Pino C. <gco...@gm...> - 2007-06-05 12:46:54
|
Need a control of IntegrityReference when we try to remove an Object from data-base. Maybe the Object is referenced from another table in the database and we must implement a logical remove method. A possible solution for this problem is: 1) Insert IntegrityReferenceException in net.smartlab.web.BusinessObjectFactory in the method remove so the last user is forced to manage this Exception and to implement a logic while removing an Object from DB. 2) Create a method isRemovible(Object o) in the class referenced that can throws an IntegrityReferenceException Es.: I have to remove a CommessaObject from my Db and it's just referenced from a ProgettoObject and AttivitaObject. In ProgettoFactory I've implemented a method "boolean existByCommessa(long id) throws DAOException " and in AttivitaFactory another method "boolean existByCommessa(long id) throws DAOException " then I've used re-call these methods in Domain in the method removeCommessa(String id): public void removeCommessa(String id) throws BusinessException ,IntegrityReferenceException{ =09=09 =09=09CommessaFactory factory =3D CommessaFactory.getInstance(); =09=09try { =09=09=09long idCommessa=3DLong.parseLong(id); =09=09=09if(ProgettoFactory.getInstance().existsByCommessa(idCommessa) || AttivitaFactory.getInstance().existsByCommessa(idCommessa)){ =09=09=09=09logger.error("Errore in isRemovibleCommessa"); =09=09=09=09throw new IntegrityReferenceException("Errore di integrit=C3=A0 referenziale"); =09=09=09} =09=09=09 =09=09=09Commessa toRemove =3D (Commessa) factory.findByKey(Long.parseLong(= id)); =09=09=09factory.remove(toRemove); =09=09} catch (DAOException daoe) { =09=09=09throw new BusinessException(daoe.getMessage()); =09=09} =09} In this way in the CommessaAction ,the method remove may throws an IntegrityReferenceException that we can catch in this way: public String remove(ActionForm form, HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws ActionException { =09=09logger.info("remove di CommessaAction"); =09=09try { =09=09=09String id =3D request.getParameter("id"); =09=09=09Domain.getInstance().removeCommessa(id); =09=09} catch (BusinessException e) { =09=09=09logger.error("errore in remove di CommessaAction", e); =09=09=09throw new ActionException(e.getMessage(), e.getCause()); =09=09} catch (IntegrityReferenceException ire) { =09=09=09logger.error("Non posso eliminare il tipo di commessa- ire"); =09=09=09super.addError(new ActionMessage("errors.progetto.reference"), req= uest); =09=09=09return "failure"; =09=09} =09=09return "success"; =09} It'all..Now It's tima to do it!! --=20 View this message in context: http://www.nabble.com/Entity--IntegrityRefere= nceException-tf3871534s17546.html#a10968695 Sent from the SmartWeb Users mailing list archive at Nabble.com. |
From: rlogiacco <rlo...@us...> - 2007-03-06 12:00:08
|
rlogiacco wrote: > > I've managed to find out and adapt a regular expression to validate > password fields with custom rules. > > With the regexp ^(?=(.*\d){2,})(?=(.*[a-zA-Z]){3,}).{8,}$ you can ensure > the password is 8 chars long and contains at least 2 digits and 3 alphas. > > May be this regular expression can be included into the standard auth > module to provide a front-end validation. > The integration with the auth module was performed, a feature request [ 1674754 ] added and closed. May be now we need to document the feature... any volunteer? :-) -- View this message in context: http://www.nabble.com/Password-validation-tf3185918s17546.html#a9330709 Sent from the SmartWeb Users mailing list archive at Nabble.com. |
From: lucantonio c. <lc...@gm...> - 2007-02-08 13:59:28
|
Richiesta registrazione lcofone Ciao GURU -- Lucantonio Cofone Java Developer |
From: rlogiacco <rlo...@us...> - 2007-02-07 09:59:06
|
I've managed to find out and adapt a regular expression to validate password fields with custom rules. With the regexp ^(?=(.*\d){2,})(?=(.*[a-zA-Z]){3,}).{8,}$ you can ensure the password is 8 chars long and contains at least 2 digits and 3 alphas. Here follows the regexp explanation: 1. the (?= part means match but don't consume so i can verify without having any further counter effects; 2. the (.*\d) and (.*[a-zA-Z]) parts mean any digit and any alpha respectively; 3. the {2,} and {3,} parts mean at least two and at least three chars; 4. the final {8,} part means at least 8 chars and because it's not inside any (?= grouping the result will consume the entire password; 5. the additional . (dot) inside the (?= grouping is used to allow any interfering character to happen in between. May be this regular expression can be included into the standard auth module to provide a front-end validation. -- View this message in context: http://www.nabble.com/Password-validation-tf3185918s17546.html#a8842555 Sent from the SmartWeb Users mailing list archive at Nabble.com. |
From: Roberto Lo G. <rlo...@la...> - 2007-01-30 09:29:17
|
This is an anti spam test message, please ignore. --- Roberto Lo Giacco |
From: Roberto Lo G. <rlo...@gm...> - 2006-12-16 01:13:40
|
From: rlogiacco <rlo...@us...> - 2006-12-14 19:47:50
|
-- View this message in context: http://www.nabble.com/Welcome-new-user%21-tf2823020s17546.html#a7879697 Sent from the SmartWeb Users mailing list archive at Nabble.com. |