smartweb-devel Mailing List for SmartWeb (Page 6)
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
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(3) |
Feb
(2) |
Mar
(1) |
Apr
(3) |
May
(4) |
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
(5) |
Oct
(7) |
Nov
(52) |
Dec
(3) |
2008 |
Jan
(18) |
Feb
(1) |
Mar
(4) |
Apr
(30) |
May
(19) |
Jun
(5) |
Jul
(1) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2009 |
Jan
|
Feb
(1) |
Mar
(10) |
Apr
|
May
(2) |
Jun
(3) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(4) |
Nov
|
Dec
|
From: Pino C. <gco...@gm...> - 2007-11-09 15:53:09
|
Where can I find an auth guide? Roberto Lo Giacco-4 wrote: > > By the way: if you need to check if there is a user logged in you > should use the User.isGuest() method as User.get() always returns a > not null object.... ;) > > 2007/11/9, Pino Contartese <gco...@gm...>: >> >> Ok better express the proposal reproposing a real case >> I have to check that the user is logged in or not and I write: >> If (net.smartlab.web.auth.User.get ()! = null) ( >> ... >> It doesn't seem so friendly ..it was better for me to use it with antoher >> sign like I suggest before >> net.smartlab.web.auth.User.getCurrent() !=null >> >> Do you agree with me ? >> >> >> Roberto Lo Giacco wrote: >> > >> > Do you mean auth module with the statement form auth? >> > In case I understood correctly I think this could be a minor change >> into >> > the auth module API but I'm not sure what the advantages will be... can >> > you provide any reason for the change? >> > >> > >> > Pino Contartese wrote: >> >> >> >> Uhmm ... >> >> Hi Stephen,I start to use the form auth and I have noticed that the >> >> signature of static method User.get () is a little understandable. It >> >> would be more understandable User.getCurrent ()? >> >> I expect a response from everyone on .. >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Static-sign-on-auth-module-less-understandable-tf4774615s17546.html#a13667696 >> Sent from the SmartWeb Developers mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> smartweb-devel mailing list >> sma...@li... >> https://lists.sourceforge.net/lists/listinfo/smartweb-devel >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > > -- View this message in context: http://www.nabble.com/Static-sign-on-auth-module-less-understandable-tf4774615s17546.html#a13669580 Sent from the SmartWeb Developers mailing list archive at Nabble.com. |
From: Roberto Lo G. <rlo...@sm...> - 2007-11-09 15:47:26
|
By the way: if you need to check if there is a user logged in you should use the User.isGuest() method as User.get() always returns a not null object.... ;) 2007/11/9, Pino Contartese <gco...@gm...>: > > Ok better express the proposal reproposing a real case > I have to check that the user is logged in or not and I write: > If (net.smartlab.web.auth.User.get ()! = null) ( > ... > It doesn't seem so friendly ..it was better for me to use it with antoher > sign like I suggest before > net.smartlab.web.auth.User.getCurrent() !=null > > Do you agree with me ? > > > Roberto Lo Giacco wrote: > > > > Do you mean auth module with the statement form auth? > > In case I understood correctly I think this could be a minor change into > > the auth module API but I'm not sure what the advantages will be... can > > you provide any reason for the change? > > > > > > Pino Contartese wrote: > >> > >> Uhmm ... > >> Hi Stephen,I start to use the form auth and I have noticed that the > >> signature of static method User.get () is a little understandable. It > >> would be more understandable User.getCurrent ()? > >> I expect a response from everyone on .. > >> > > > > > > -- > View this message in context: http://www.nabble.com/Static-sign-on-auth-module-less-understandable-tf4774615s17546.html#a13667696 > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > |
From: Roberto Lo G. <rlo...@sm...> - 2007-11-09 14:25:56
|
Ok, I understood your point, but I hope you agree with me if I state the difference between the two examples is not on API powerness or flexibility but on ease of comprehension.... 2007/11/9, Pino Contartese <gco...@gm...>: > > Ok better express the proposal reproposing a real case > I have to check that the user is logged in or not and I write: > If (net.smartlab.web.auth.User.get ()! = null) ( > ... > It doesn't seem so friendly ..it was better for me to use it with antoher > sign like I suggest before > net.smartlab.web.auth.User.getCurrent() !=null > > Do you agree with me ? > > > Roberto Lo Giacco wrote: > > > > Do you mean auth module with the statement form auth? > > In case I understood correctly I think this could be a minor change into > > the auth module API but I'm not sure what the advantages will be... can > > you provide any reason for the change? > > > > > > Pino Contartese wrote: > >> > >> Uhmm ... > >> Hi Stephen,I start to use the form auth and I have noticed that the > >> signature of static method User.get () is a little understandable. It > >> would be more understandable User.getCurrent ()? > >> I expect a response from everyone on .. > >> > > > > > > -- > View this message in context: http://www.nabble.com/Static-sign-on-auth-module-less-understandable-tf4774615s17546.html#a13667696 > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > |
From: Pino C. <gco...@gm...> - 2007-11-09 14:17:00
|
Ok better express the proposal reproposing a real case I have to check that the user is logged in or not and I write: If (net.smartlab.web.auth.User.get ()! = null) ( ... It doesn't seem so friendly ..it was better for me to use it with antoher sign like I suggest before net.smartlab.web.auth.User.getCurrent() !=null Do you agree with me ? Roberto Lo Giacco wrote: > > Do you mean auth module with the statement form auth? > In case I understood correctly I think this could be a minor change into > the auth module API but I'm not sure what the advantages will be... can > you provide any reason for the change? > > > Pino Contartese wrote: >> >> Uhmm ... >> Hi Stephen,I start to use the form auth and I have noticed that the >> signature of static method User.get () is a little understandable. It >> would be more understandable User.getCurrent ()? >> I expect a response from everyone on .. >> > > -- View this message in context: http://www.nabble.com/Static-sign-on-auth-module-less-understandable-tf4774615s17546.html#a13667696 Sent from the SmartWeb Developers mailing list archive at Nabble.com. |
From: Roberto Lo G. <rlo...@us...> - 2007-11-09 11:13:06
|
I think this question is a duplicate of the other one you correctly posted with another subject so I suggest to ignore this one. Pino Contartese wrote: > > Hi Stefano ... I began in earnest to use the form smartweb.auth in one of > my > application and I wanted you to know that I believe the signing > net.smartlab.web.auth.User.get () might be more understandable in another > way. For example User.getCurrent () > What do you think about it? > I'm waiting for your answer.. > > 2007/11/6, svetrini <st...@gm...>: >> >> >> I found a nice lib to manage java time and date in the opensource >> comunity. >> This is JODA ( http://joda-time.sourceforge.net/ ) >> I think it is usefuller than standard JDK class. >> I tried to use it in Some example Handler inside the auth method. >> exactly i used Period and Inteval to manage Time interval during which an >> user is allowed to execute a login. >> >> Maybe an entire lib is too much, to use only this feature... >> >> What do you think about? >> -- >> View this message in context: >> http://www.nabble.com/Time...-JODA-tf4760551s17546.html#a13614454 >> Sent from the SmartWeb Developers mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> smartweb-devel mailing list >> sma...@li... >> https://lists.sourceforge.net/lists/listinfo/smartweb-devel >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > > -- View this message in context: http://www.nabble.com/Time...-JODA-tf4760551s17546.html#a13665064 Sent from the SmartWeb Developers mailing list archive at Nabble.com. |
From: Roberto Lo G. <rlo...@us...> - 2007-11-09 10:05:15
|
Do you mean auth module with the statement form auth? In case I understood correctly I think this could be a minor change into the auth module API but I'm not sure what the advantages will be... can you provide any reason for the change? Pino Contartese wrote: > > Uhmm ... > Hi Stephen,I start to use the form auth and I have noticed that the > signature of static method User.get () is a little understandable. It > would be more understandable User.getCurrent ()? > I expect a response from everyone on .. > -- View this message in context: http://www.nabble.com/Static-sign-on-auth-module-less-understandable-tf4774615s17546.html#a13664231 Sent from the SmartWeb Developers mailing list archive at Nabble.com. |
From: Pino C. <gco...@gm...> - 2007-11-08 23:59:06
|
Uhmm ... Hi Stephen,I start to use the form auth and I have noticed that the signature of static method User.get () is a little understandable. It would be more understandable User.getCurrent ()? I expect a response from everyone on .. -- View this message in context: http://www.nabble.com/Static-sign-on-auth-module-less-understandable-tf4774615s17546.html#a13658668 Sent from the SmartWeb Developers mailing list archive at Nabble.com. |
From: Pino C. <gco...@gm...> - 2007-11-08 23:44:14
|
Uhmmm.. Hello Roberto, I can not understand the context of this issue accordingly .= . I can not express my opinion about it. Could you state the problem in a mor= e understandable way.. so that even those who are not inside can answer for you? Thanks Roberto Lo Giacco-4 wrote: >=20 > Hurr=C3=A0! i finally had some time to spend on programming (many months > have passed since my last execution of the Eclipse environment) and > I've produced a simple class which can solve our DateTimeHandler > problem in a very easy way using CRON syntax (some examples here > http://www.adminschoice.com/docs/crontab.htm#Example). >=20 > The class exposes one constructor accepting a cron-like String as > parameter and an additional (and overloaded) check method which > compares the pattern to a Date or Calendar and returns true or false > depending if the date/time matches the pattern. >=20 > I've tested it and it works well but now we must decide where to place > it. Possible candidates are: >=20 > - into core library to make it available everywhere > - as Inner Class of DateTimeHandler as this is the only place where it is > needed > - into SmartConfig to make it available everywhere SmartConfig is used >=20 > Suggestions? >=20 >=20 > 2007/11/6, svetrini <st...@gm...>: >> >> I found a nice lib to manage java time and date in the opensource >> comunity. >> This is JODA ( http://joda-time.sourceforge.net/ ) >> I think it is usefuller than standard JDK class. >> I tried to use it in Some example Handler inside the auth method. >> exactly i used Period and Inteval to manage Time interval during which a= n >> user is allowed to execute a login. >> >> Maybe an entire lib is too much, to use only this feature... >> >> What do you think about? >> -- >> View this message in context: >> http://www.nabble.com/Time...-JODA-tf4760551s17546.html#a13614454 >> Sent from the SmartWeb Developers mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------= - >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> smartweb-devel mailing list >> sma...@li... >> https://lists.sourceforge.net/lists/listinfo/smartweb-devel >> >=20 > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel >=20 >=20 --=20 View this message in context: http://www.nabble.com/Time...-JODA-tf4760551s= 17546.html#a13658472 Sent from the SmartWeb Developers mailing list archive at Nabble.com. |
From: Giuseppe C. <gco...@gm...> - 2007-11-08 23:02:17
|
Hi Stefano ... I began in earnest to use the form smartweb.auth in one of my application and I wanted you to know that I believe the signing net.smartlab.web.auth.User.get () might be more understandable in another way. For example User.getCurrent () What do you think about it? I'm waiting for your answer.. 2007/11/6, svetrini <st...@gm...>: > > > I found a nice lib to manage java time and date in the opensource > comunity. > This is JODA ( http://joda-time.sourceforge.net/ ) > I think it is usefuller than standard JDK class. > I tried to use it in Some example Handler inside the auth method. > exactly i used Period and Inteval to manage Time interval during which an > user is allowed to execute a login. > > Maybe an entire lib is too much, to use only this feature... > > What do you think about? > -- > View this message in context: > http://www.nabble.com/Time...-JODA-tf4760551s17546.html#a13614454 > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > |
From: Giuseppe C. <gco...@gm...> - 2007-11-08 22:56:16
|
Uhmmm.. Hello Roberto, I can not understand the context of this issue accordingly .= . I can not express my opinion about it. Could you state the problem in a mor= e understandable way.. so that even those who are not inside can answer for you? Thanks 2007/11/8, Roberto Lo Giacco <rlo...@sm...>: > > Hurr=E0! i finally had some time to spend on programming (many months > have passed since my last execution of the Eclipse environment) and > I've produced a simple class which can solve our DateTimeHandler > problem in a very easy way using CRON syntax (some examples here > http://www.adminschoice.com/docs/crontab.htm#Example). > > The class exposes one constructor accepting a cron-like String as > parameter and an additional (and overloaded) check method which > compares the pattern to a Date or Calendar and returns true or false > depending if the date/time matches the pattern. > > I've tested it and it works well but now we must decide where to place > it. Possible candidates are: > > - into core library to make it available everywhere > - as Inner Class of DateTimeHandler as this is the only place where it is > needed > - into SmartConfig to make it available everywhere SmartConfig is used > > Suggestions? > > > 2007/11/6, svetrini <st...@gm...>: > > > > I found a nice lib to manage java time and date in the opensource > comunity. > > This is JODA ( http://joda-time.sourceforge.net/ ) > > I think it is usefuller than standard JDK class. > > I tried to use it in Some example Handler inside the auth method. > > exactly i used Period and Inteval to manage Time interval during which > an > > user is allowed to execute a login. > > > > Maybe an entire lib is too much, to use only this feature... > > > > What do you think about? > > -- > > View this message in context: > http://www.nabble.com/Time...-JODA-tf4760551s17546.html#a13614454 > > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > smartweb-devel mailing list > > sma...@li... > > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > |
From: Gaetano P. <gpe...@sm...> - 2007-11-08 22:17:06
|
I'll take the opportunity to express my vote: +1 to joined subclass Evaluating pros and cons i thing is the best we can do at this time svetrini wrote: > > Ok i vote for joined subclass... > And now I'm waiting for Gaetano's vote > > :-) > > 2007/11/8, Roberto Lo Giacco <rlo...@sm...>: >> >> Humm... I think you still need the Gaetano's vote, plus you haven't >> voted yet.... >> >> 2007/11/8, Stefano V <st...@gm...>: >> > Thank you for the answers! >> > >> > When i have time, I'll change the code to the joined subclass in auth >> > module... >> > >> > 2007/11/7, Roberto Lo Giacco < rlo...@us...>: >> > > >> > > The problem using sequence generator is some database doesn't support >> > > sequences: the consequence will be an unsable auth module on those >> > > databases. >> > > >> > > An analysis og pros and cons of the two choices could be more >> helpful. >> > > >> > > Joined Subclass >> > > Pros >> > > # Well known and supported by xdoclet without needing to be >> patched >> > > # Supported by all databases >> > > # Allows database constraints >> > > # Better performances if a list of Subjects is requested (only id >> and >> > > display properties) >> > > Cons >> > > # Requires an additional Subject table >> > > # Full queries on Subject, User or Group needs a JOIN on twoor >> three >> > > tables >> > > # Pessimistical locking need to acquire 2 locks >> > > >> > > Union Subclass >> > > Pros >> > > # Better performances on quering User and Group entities as no >> JOIN is >> > > requested >> > > # No additional table exposed >> > > # Easier to query using plain SQL outside Hibernate >> > > Cons >> > > # Quering Subject needs a UNION, whatever infos you need >> > > # Same field on two tables >> > > # Needs sequence support on the database >> > > >> > > >> > > Gaetano Perrone wrote: >> > > > >> > > > I delve into the problem and hibernate documentation says that >> identity >> > > > generator strategy is not allowed in union subclass inheritance, >> indeed >> > > > the primary key seed has to be shared accross all unioned >> subclasses >> of >> > a >> > > > hierarchy. >> > > > The suggested approch for generating table for concrete class is >> to >> use >> > a >> > > > sequence generator strategy instead of native. With this approch >> each >> > > > table defines columns for all properties of the class, including >> > inherited >> > > > properties. The limitation of this approach is that if a property >> is >> > > > mapped on the superclass, the column name must be the same on all >> > subclass >> > > > tables. (Hibernate group is going to relax this in a future >> release). >> > > > This means that a dedicated class tree sequence could be >> > > > introduced....Otherwise i don't know what happens using the >> > > > hibernate_sequence as sequence instead of generator native... >> > > > What do u thing about it?? >> > > > >> > > >> > > -- >> > > View this message in context: >> > >> http://www.nabble.com/Smartweb-Auth-and--problem-with-XDoclet--Hibernate-union-subclass-tf4761003s17546.html#a13625607 >> > > Sent from the SmartWeb Developers mailing list archive at Nabble.com. >> > > >> > > >> > > >> > >> ------------------------------------------------------------------------- >> > > This SF.net email is sponsored by: Splunk Inc. >> > > Still grepping through log files to find problems? Stop. >> > > Now Search log events and configuration files using AJAX and a >> browser. >> > > Download your FREE copy of Splunk now >> http://get.splunk.com/ >> > > _______________________________________________ >> > > smartweb-devel mailing list >> > > sma...@li... >> > > >> > https://lists.sourceforge.net/lists/listinfo/smartweb-devel >> > > >> > >> > >> > >> ------------------------------------------------------------------------- >> > This SF.net email is sponsored by: Splunk Inc. >> > Still grepping through log files to find problems? Stop. >> > Now Search log events and configuration files using AJAX and a browser. >> > Download your FREE copy of Splunk now >> http://get.splunk.com/ >> > _______________________________________________ >> > smartweb-devel mailing list >> > sma...@li... >> > https://lists.sourceforge.net/lists/listinfo/smartweb-devel >> > >> > >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> smartweb-devel mailing list >> sma...@li... >> https://lists.sourceforge.net/lists/listinfo/smartweb-devel >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > > -- View this message in context: http://www.nabble.com/Smartweb-Auth-and--problem-with-XDoclet--Hibernate-union-subclass-tf4761003s17546.html#a13657083 Sent from the SmartWeb Developers mailing list archive at Nabble.com. |
From: Stefano V <st...@gm...> - 2007-11-08 17:14:34
|
Ok i vote for joined subclass... And now I'm waiting for Gaetano's vote :-) 2007/11/8, Roberto Lo Giacco <rlo...@sm...>: > > Humm... I think you still need the Gaetano's vote, plus you haven't > voted yet.... > > 2007/11/8, Stefano V <st...@gm...>: > > Thank you for the answers! > > > > When i have time, I'll change the code to the joined subclass in auth > > module... > > > > 2007/11/7, Roberto Lo Giacco < rlo...@us...>: > > > > > > The problem using sequence generator is some database doesn't support > > > sequences: the consequence will be an unsable auth module on those > > > databases. > > > > > > An analysis og pros and cons of the two choices could be more helpful. > > > > > > Joined Subclass > > > Pros > > > # Well known and supported by xdoclet without needing to be > patched > > > # Supported by all databases > > > # Allows database constraints > > > # Better performances if a list of Subjects is requested (only id > and > > > display properties) > > > Cons > > > # Requires an additional Subject table > > > # Full queries on Subject, User or Group needs a JOIN on twoor > three > > > tables > > > # Pessimistical locking need to acquire 2 locks > > > > > > Union Subclass > > > Pros > > > # Better performances on quering User and Group entities as no > JOIN is > > > requested > > > # No additional table exposed > > > # Easier to query using plain SQL outside Hibernate > > > Cons > > > # Quering Subject needs a UNION, whatever infos you need > > > # Same field on two tables > > > # Needs sequence support on the database > > > > > > > > > Gaetano Perrone wrote: > > > > > > > > I delve into the problem and hibernate documentation says that > identity > > > > generator strategy is not allowed in union subclass inheritance, > indeed > > > > the primary key seed has to be shared accross all unioned subclasses > of > > a > > > > hierarchy. > > > > The suggested approch for generating table for concrete class is to > use > > a > > > > sequence generator strategy instead of native. With this approch > each > > > > table defines columns for all properties of the class, including > > inherited > > > > properties. The limitation of this approach is that if a property is > > > > mapped on the superclass, the column name must be the same on all > > subclass > > > > tables. (Hibernate group is going to relax this in a future > release). > > > > This means that a dedicated class tree sequence could be > > > > introduced....Otherwise i don't know what happens using the > > > > hibernate_sequence as sequence instead of generator native... > > > > What do u thing about it?? > > > > > > > > > > -- > > > View this message in context: > > > http://www.nabble.com/Smartweb-Auth-and--problem-with-XDoclet--Hibernate-union-subclass-tf4761003s17546.html#a13625607 > > > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. > > > Still grepping through log files to find problems? Stop. > > > Now Search log events and configuration files using AJAX and a > browser. > > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > _______________________________________________ > > > smartweb-devel mailing list > > > sma...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > smartweb-devel mailing list > > sma...@li... > > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > |
From: Roberto Lo G. <rlo...@sm...> - 2007-11-08 15:33:30
|
Humm... I think you still need the Gaetano's vote, plus you haven't voted yet.... 2007/11/8, Stefano V <st...@gm...>: > Thank you for the answers! > > When i have time, I'll change the code to the joined subclass in auth > module... > > 2007/11/7, Roberto Lo Giacco < rlo...@us...>: > > > > The problem using sequence generator is some database doesn't support > > sequences: the consequence will be an unsable auth module on those > > databases. > > > > An analysis og pros and cons of the two choices could be more helpful. > > > > Joined Subclass > > Pros > > # Well known and supported by xdoclet without needing to be patched > > # Supported by all databases > > # Allows database constraints > > # Better performances if a list of Subjects is requested (only id and > > display properties) > > Cons > > # Requires an additional Subject table > > # Full queries on Subject, User or Group needs a JOIN on twoor three > > tables > > # Pessimistical locking need to acquire 2 locks > > > > Union Subclass > > Pros > > # Better performances on quering User and Group entities as no JOIN is > > requested > > # No additional table exposed > > # Easier to query using plain SQL outside Hibernate > > Cons > > # Quering Subject needs a UNION, whatever infos you need > > # Same field on two tables > > # Needs sequence support on the database > > > > > > Gaetano Perrone wrote: > > > > > > I delve into the problem and hibernate documentation says that identity > > > generator strategy is not allowed in union subclass inheritance, indeed > > > the primary key seed has to be shared accross all unioned subclasses of > a > > > hierarchy. > > > The suggested approch for generating table for concrete class is to use > a > > > sequence generator strategy instead of native. With this approch each > > > table defines columns for all properties of the class, including > inherited > > > properties. The limitation of this approach is that if a property is > > > mapped on the superclass, the column name must be the same on all > subclass > > > tables. (Hibernate group is going to relax this in a future release). > > > This means that a dedicated class tree sequence could be > > > introduced....Otherwise i don't know what happens using the > > > hibernate_sequence as sequence instead of generator native... > > > What do u thing about it?? > > > > > > > -- > > View this message in context: > http://www.nabble.com/Smartweb-Auth-and--problem-with-XDoclet--Hibernate-union-subclass-tf4761003s17546.html#a13625607 > > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > smartweb-devel mailing list > > sma...@li... > > > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > > |
From: Roberto Lo G. <rlo...@sm...> - 2007-11-08 15:29:26
|
I'm really tempted to provide such features through the SmartConfig library as they are need in many places and, in a certain way, they are related to applications configuration. 2007/11/8, Stefano V <st...@gm...>: > Put it in the core! > :-) > > I think it's a more logic solution. > Now we can also externalize the > EmailVerifierRegistrationHandler - parseParametricText > method ( and its dependencies) in an other utility class... What do you > think? > > good work! > > 2007/11/8, Roberto Lo Giacco <rlo...@sm...>: > > > > Hurr=E0! i finally had some time to spend on programming (many months > > have passed since my last execution of the Eclipse environment) and > > I've produced a simple class which can solve our DateTimeHandler > > problem in a very easy way using CRON syntax (some examples here > > http://www.adminschoice.com/docs/crontab.htm#Example). > > > > The class exposes one constructor accepting a cron-like String as > > parameter and an additional (and overloaded) check method which > > compares the pattern to a Date or Calendar and returns true or false > > depending if the date/time matches the pattern. > > > > I've tested it and it works well but now we must decide where to place > > it. Possible candidates are: > > > > - into core library to make it available everywhere > > - as Inner Class of DateTimeHandler as this is the only place where it = is > needed > > - into SmartConfig to make it available everywhere SmartConfig is used > > > > Suggestions? > > > > > > 2007/11/6, svetrini <st...@gm...>: > > > > > > I found a nice lib to manage java time and date in the opensource > comunity. > > > This is JODA ( http://joda-time.sourceforge.net/ ) > > > I think it is usefuller than standard JDK class. > > > I tried to use it in Some example Handler inside the auth method. > > > exactly i used Period and Inteval to manage Time interval during whic= h > an > > > user is allowed to execute a login. > > > > > > Maybe an entire lib is too much, to use only this feature... > > > > > > What do you think about? > > > -- > > > View this message in context: > http://www.nabble.com/Time...-JODA-tf4760551s17546.html#a13614454 > > > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. > > > Still grepping through log files to find problems? Stop. > > > Now Search log events and configuration files using AJAX and a browse= r. > > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > _______________________________________________ > > > smartweb-devel mailing list > > > sma...@li... > > > > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > smartweb-devel mailing list > > sma...@li... > > > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > > |
From: Stefano V <st...@gm...> - 2007-11-08 13:54:58
|
Thank you for the answers! When i have time, I'll change the code to the joined subclass in auth module... 2007/11/7, Roberto Lo Giacco <rlo...@us...>: > > > The problem using sequence generator is some database doesn't support > sequences: the consequence will be an unsable auth module on those > databases. > > An analysis og pros and cons of the two choices could be more helpful. > > Joined Subclass > Pros > # Well known and supported by xdoclet without needing to be patched > # Supported by all databases > # Allows database constraints > # Better performances if a list of Subjects is requested (only id and > display properties) > Cons > # Requires an additional Subject table > # Full queries on Subject, User or Group needs a JOIN on twoor three > tables > # Pessimistical locking need to acquire 2 locks > > Union Subclass > Pros > # Better performances on quering User and Group entities as no JOIN is > requested > # No additional table exposed > # Easier to query using plain SQL outside Hibernate > Cons > # Quering Subject needs a UNION, whatever infos you need > # Same field on two tables > # Needs sequence support on the database > > > Gaetano Perrone wrote: > > > > I delve into the problem and hibernate documentation says that identity > > generator strategy is not allowed in union subclass inheritance, indeed > > the primary key seed has to be shared accross all unioned subclasses of > a > > hierarchy. > > The suggested approch for generating table for concrete class is to use > a > > sequence generator strategy instead of native. With this approch each > > table defines columns for all properties of the class, including > inherited > > properties. The limitation of this approach is that if a property is > > mapped on the superclass, the column name must be the same on all > subclass > > tables. (Hibernate group is going to relax this in a future release). > > This means that a dedicated class tree sequence could be > > introduced....Otherwise i don't know what happens using the > > hibernate_sequence as sequence instead of generator native... > > What do u thing about it?? > > > > -- > View this message in context: > http://www.nabble.com/Smartweb-Auth-and--problem-with-XDoclet--Hibernate-union-subclass-tf4761003s17546.html#a13625607 > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > |
From: Stefano V <st...@gm...> - 2007-11-08 13:52:38
|
Put it in the core! :-) I think it's a more logic solution. Now we can also externalize the EmailVerifierRegistrationHandler - parseParametricText method ( and its dependencies) in an other utility class... What do you think? good work! 2007/11/8, Roberto Lo Giacco <rlo...@sm...>: > > Hurr=E0! i finally had some time to spend on programming (many months > have passed since my last execution of the Eclipse environment) and > I've produced a simple class which can solve our DateTimeHandler > problem in a very easy way using CRON syntax (some examples here > http://www.adminschoice.com/docs/crontab.htm#Example). > > The class exposes one constructor accepting a cron-like String as > parameter and an additional (and overloaded) check method which > compares the pattern to a Date or Calendar and returns true or false > depending if the date/time matches the pattern. > > I've tested it and it works well but now we must decide where to place > it. Possible candidates are: > > - into core library to make it available everywhere > - as Inner Class of DateTimeHandler as this is the only place where it is > needed > - into SmartConfig to make it available everywhere SmartConfig is used > > Suggestions? > > > 2007/11/6, svetrini <st...@gm...>: > > > > I found a nice lib to manage java time and date in the opensource > comunity. > > This is JODA ( http://joda-time.sourceforge.net/ ) > > I think it is usefuller than standard JDK class. > > I tried to use it in Some example Handler inside the auth method. > > exactly i used Period and Inteval to manage Time interval during which > an > > user is allowed to execute a login. > > > > Maybe an entire lib is too much, to use only this feature... > > > > What do you think about? > > -- > > View this message in context: > http://www.nabble.com/Time...-JODA-tf4760551s17546.html#a13614454 > > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > smartweb-devel mailing list > > sma...@li... > > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > |
From: Roberto Lo G. <rlo...@sm...> - 2007-11-08 13:30:22
|
Hurr=E0! i finally had some time to spend on programming (many months have passed since my last execution of the Eclipse environment) and I've produced a simple class which can solve our DateTimeHandler problem in a very easy way using CRON syntax (some examples here http://www.adminschoice.com/docs/crontab.htm#Example). The class exposes one constructor accepting a cron-like String as parameter and an additional (and overloaded) check method which compares the pattern to a Date or Calendar and returns true or false depending if the date/time matches the pattern. I've tested it and it works well but now we must decide where to place it. Possible candidates are: - into core library to make it available everywhere - as Inner Class of DateTimeHandler as this is the only place where it is n= eeded - into SmartConfig to make it available everywhere SmartConfig is used Suggestions? 2007/11/6, svetrini <st...@gm...>: > > I found a nice lib to manage java time and date in the opensource comunit= y. > This is JODA ( http://joda-time.sourceforge.net/ ) > I think it is usefuller than standard JDK class. > I tried to use it in Some example Handler inside the auth method. > exactly i used Period and Inteval to manage Time interval during which an > user is allowed to execute a login. > > Maybe an entire lib is too much, to use only this feature... > > What do you think about? > -- > View this message in context: http://www.nabble.com/Time...-JODA-tf476055= 1s17546.html#a13614454 > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > |
From: Roberto Lo G. <rlo...@sm...> - 2007-11-07 13:32:49
|
Hi Gaetano, do you have any suggestion? I thought DateFormat and Calendar where doing well their job and with the help of the validator plugin major issues about date and time were solved. Am I missing something? 2007/11/7, Gaetano Perrone <gpe...@sm...>: > > Hi all!!! > just taking a look around to the library i thing it would be intersting to > introduce this or another date/time manipulation library into the smartweb > framework (there is also a tag library). > The library must be intended as a date/time manipulation utility (more > powerfull and easy to use rather then java.util.Calendar and > java.text.DateFormat). > It must not be intended as a date/time scheduler utility... > It simply exports simple method for date/time manipulation and supports > internazionalization, tag library, time interval. > I think it could enrich the rapid web-application development framework... > > > svetrini wrote: > > > > I found a nice lib to manage java time and date in the opensource > > comunity. > > This is JODA ( http://joda-time.sourceforge.net/ ) > > I think it is usefuller than standard JDK class. > > I tried to use it in Some example Handler inside the auth method. > > exactly i used Period and Inteval to manage Time interval during which an > > user is allowed to execute a login. > > > > Maybe an entire lib is too much, to use only this feature... > > > > What do you think about? > > > > -- > View this message in context: http://www.nabble.com/Time...-JODA-tf4760551s17546.html#a13625579 > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > |
From: Roberto Lo G. <rlo...@us...> - 2007-11-07 11:48:48
|
The problem using sequence generator is some database doesn't support sequences: the consequence will be an unsable auth module on those databases. An analysis og pros and cons of the two choices could be more helpful. Joined Subclass Pros # Well known and supported by xdoclet without needing to be patched # Supported by all databases # Allows database constraints # Better performances if a list of Subjects is requested (only id and display properties) Cons # Requires an additional Subject table # Full queries on Subject, User or Group needs a JOIN on twoor three tables # Pessimistical locking need to acquire 2 locks Union Subclass Pros # Better performances on quering User and Group entities as no JOIN is requested # No additional table exposed # Easier to query using plain SQL outside Hibernate Cons # Quering Subject needs a UNION, whatever infos you need # Same field on two tables # Needs sequence support on the database Gaetano Perrone wrote: > > I delve into the problem and hibernate documentation says that identity > generator strategy is not allowed in union subclass inheritance, indeed > the primary key seed has to be shared accross all unioned subclasses of a > hierarchy. > The suggested approch for generating table for concrete class is to use a > sequence generator strategy instead of native. With this approch each > table defines columns for all properties of the class, including inherited > properties. The limitation of this approach is that if a property is > mapped on the superclass, the column name must be the same on all subclass > tables. (Hibernate group is going to relax this in a future release). > This means that a dedicated class tree sequence could be > introduced....Otherwise i don't know what happens using the > hibernate_sequence as sequence instead of generator native... > What do u thing about it?? > -- View this message in context: http://www.nabble.com/Smartweb-Auth-and--problem-with-XDoclet--Hibernate-union-subclass-tf4761003s17546.html#a13625607 Sent from the SmartWeb Developers mailing list archive at Nabble.com. |
From: Gaetano P. <gpe...@sm...> - 2007-11-07 11:39:49
|
Hi all!!! just taking a look around to the library i thing it would be intersting to introduce this or another date/time manipulation library into the smartweb framework (there is also a tag library). The library must be intended as a date/time manipulation utility (more powerfull and easy to use rather then java.util.Calendar and java.text.DateFormat). It must not be intended as a date/time scheduler utility... It simply exports simple method for date/time manipulation and supports internazionalization, tag library, time interval. I think it could enrich the rapid web-application development framework... svetrini wrote: > > I found a nice lib to manage java time and date in the opensource > comunity. > This is JODA ( http://joda-time.sourceforge.net/ ) > I think it is usefuller than standard JDK class. > I tried to use it in Some example Handler inside the auth method. > exactly i used Period and Inteval to manage Time interval during which an > user is allowed to execute a login. > > Maybe an entire lib is too much, to use only this feature... > > What do you think about? > -- View this message in context: http://www.nabble.com/Time...-JODA-tf4760551s17546.html#a13625579 Sent from the SmartWeb Developers mailing list archive at Nabble.com. |
From: Roberto Lo G. <rlo...@sm...> - 2007-11-07 11:08:51
|
>From the Hibernate official documentation, chapter 9 "Inheritance Mapping": "Three tables are involved for the subclasses. Each table defines columns for all properties of the class, including inherited properties. The limitation of this approach is that if a property is mapped on the superclass, the column name must be the same on all subclass tables. (We might relax this in a future release of Hibernate.) The identity generator strategy is not allowed in union subclass inheritance, indeed the primary key seed has to be shared accross all unioned subclasses of a hierarchy." As stated in the documentation there's a problem on the id generator, plus we got into a "problem" on the database too: 2007/11/7, Gaetano Perrone <gpe...@sm...>: > > Ops i would say the hibernate problem (and not property) sorry.... > :-P > > > Gaetano Perrone wrote: > > > > In my opinion the union-subclass actual solution is very fine because it > > makes the generated database more simple and more "developer-friendly". > > Then I think it deserves at least an attempt to preserve it. > > Could we think to identify accurately the hibernate property and try to > > resolve it?? > > > > > > svetrini wrote: > >> > >> At this time smartweb auth has a little problem... Actually union > >> subclass has. > >> hbm generation fails due to a bug on xdoclet union subclass. > >> We have just sended patches to xdoclet team but none new version was > >> released. > >> I recently found another minor problem on auth module. It doesn't create > >> schema on dbs different from PostgreSQL ( I tried on MySQL and HSQL ) > >> this is not our bug but a knowed hibernate problem. > >> > >> So... > >> > >> What do you think about change from union subclass to another subclass > >> type? > >> > >> I'm waiting to your answers... :-) > >> > > > > > > -- > View this message in context: http://www.nabble.com/Smartweb-Auth-and--problem-with-XDoclet--Hibernate-union-subclass-tf4761003s17546.html#a13624540 > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > |
From: Gaetano P. <gpe...@sm...> - 2007-11-07 10:56:26
|
I delve into the problem and hibernate documentation says that identity generator strategy is not allowed in union subclass inheritance, indeed the primary key seed has to be shared accross all unioned subclasses of a hierarchy. The suggested approch for generating table for concrete class is to use a sequence generator strategy instead of native. With this approch each table defines columns for all properties of the class, including inherited properties. The limitation of this approach is that if a property is mapped on the superclass, the column name must be the same on all subclass tables. (Hibernate group is going to relax this in a future release). This means that a dedicated class tree sequence could be introduced....Otherwise i don't know what happens using the hibernate_sequence as sequence instead of generator native... What do u thing about it?? svetrini wrote: > > At this time smartweb auth has a little problem... Actually union > subclass has. > hbm generation fails due to a bug on xdoclet union subclass. > We have just sended patches to xdoclet team but none new version was > released. > I recently found another minor problem on auth module. It doesn't create > schema on dbs different from PostgreSQL ( I tried on MySQL and HSQL ) this > is not our bug but a knowed hibernate problem. > > So... > > What do you think about change from union subclass to another subclass > type? > > I'm waiting to your answers... :-) > -- View this message in context: http://www.nabble.com/Smartweb-Auth-and--problem-with-XDoclet--Hibernate-union-subclass-tf4761003s17546.html#a13624965 Sent from the SmartWeb Developers mailing list archive at Nabble.com. |
From: Gaetano P. <gpe...@sm...> - 2007-11-07 10:23:51
|
Ops i would say the hibernate problem (and not property) sorry.... :-P Gaetano Perrone wrote: > > In my opinion the union-subclass actual solution is very fine because it > makes the generated database more simple and more "developer-friendly". > Then I think it deserves at least an attempt to preserve it. > Could we think to identify accurately the hibernate property and try to > resolve it?? > > > svetrini wrote: >> >> At this time smartweb auth has a little problem... Actually union >> subclass has. >> hbm generation fails due to a bug on xdoclet union subclass. >> We have just sended patches to xdoclet team but none new version was >> released. >> I recently found another minor problem on auth module. It doesn't create >> schema on dbs different from PostgreSQL ( I tried on MySQL and HSQL ) >> this is not our bug but a knowed hibernate problem. >> >> So... >> >> What do you think about change from union subclass to another subclass >> type? >> >> I'm waiting to your answers... :-) >> > > -- View this message in context: http://www.nabble.com/Smartweb-Auth-and--problem-with-XDoclet--Hibernate-union-subclass-tf4761003s17546.html#a13624540 Sent from the SmartWeb Developers mailing list archive at Nabble.com. |
From: Gaetano P. <gpe...@sm...> - 2007-11-07 10:21:57
|
In my opinion the union-subclass actual solution is very fine because it makes the generated database more simple and more "developer-friendly". Then I think it deserves at least an attempt to preserve it. Could we think to identify accurately the hibernate property and try to resolve it?? svetrini wrote: > > At this time smartweb auth has a little problem... Actually union > subclass has. > hbm generation fails due to a bug on xdoclet union subclass. > We have just sended patches to xdoclet team but none new version was > released. > I recently found another minor problem on auth module. It doesn't create > schema on dbs different from PostgreSQL ( I tried on MySQL and HSQL ) this > is not our bug but a knowed hibernate problem. > > So... > > What do you think about change from union subclass to another subclass > type? > > I'm waiting to your answers... :-) > -- View this message in context: http://www.nabble.com/Smartweb-Auth-and--problem-with-XDoclet--Hibernate-union-subclass-tf4761003s17546.html#a13624537 Sent from the SmartWeb Developers mailing list archive at Nabble.com. |
From: Roberto Lo G. <rlo...@sm...> - 2007-11-07 01:58:28
|
For what I can see from the site documentation and the API javadoc I think this library doesn't support what we need as Period and interval are nothing like CRON. To be more precise I think the DateTimeHandler should express something like "allow this only if the day of the week is friday and time is between 8 AM and 6PM". This kind of sentence is a tipical CRON expression as in Jcrontab or Quartz which are jobschedulers and therefore much more than we need. In my opinion, if I'm right about JODA capabilities, it's not needed but I'm more than open to discussion. 2007/11/6, svetrini <st...@gm...>: > > I found a nice lib to manage java time and date in the opensource comunity. > This is JODA ( http://joda-time.sourceforge.net/ ) > I think it is usefuller than standard JDK class. > I tried to use it in Some example Handler inside the auth method. > exactly i used Period and Inteval to manage Time interval during which an > user is allowed to execute a login. > > Maybe an entire lib is too much, to use only this feature... > > What do you think about? > -- > View this message in context: http://www.nabble.com/Time...-JODA-tf4760551s17546.html#a13614454 > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > |