You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Lester Ward <lw...@tagaudit.com> on 2004/05/21 23:16:55 UTC

Hibernate HOWTO questions

It has been mentioned on this list that the Hibernate HOWTO
(http://jakarta.apache.org/turbine/turbine-2.3/howto/hibernate-howto.html)
is a bit rough and could use some editing.

I've been looking at it, and have some basic questions about it that I hope
someone can answer:

1) One of the things conspicuously missing is any indication that the
settings (particularly of the Security Manager) need to be changed in
Turbine.properties. It seems like if you were making the security system use
Hibernate instead of Torque, you would need to touch the Turbine.properties
file. Is this an omission? Or does the howto not cover replacing the
Torque-based security system? Or is something else happening? (I suspect
that the answer here is that the HOWTO isn't meant to address the security
tables.)

2) Assuming the HOWTO is not meant to address changing the security system
to also use Hibernate, how would this be done? I assume that the brute force
way is to write a SecurityService replacement from scratch. Has anyone done
this already?

3) I assume that the HOWTO was accurate at the time it was written. Is it
still? If not, what has changed to make it inaccurate?

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Hibernate HOWTO questions

Posted by Ben Gidley <be...@gidley.co.uk>.
Lester,
    The HOWTO is reasonably correct - however it does not mention how to 
handle security. The simplest way is to use Fulcrum Security (which 
works with Hibernate).

    If you want to see a sample application using this see 
http://zebra.tigris.org/ the sample application there called antelope is 
designed to be a template project using Hibernate, Turbine and a few 
other bits. This uses Fulcrum security with Hibernate. There are a 
couple of bits that differ from the current Turbine HOWTO - as Antelope 
uses a different stratergy for managing Hibernate sessions than the 
Avalon service.

Thanks

Ben

Lester Ward wrote:

>It has been mentioned on this list that the Hibernate HOWTO
>(http://jakarta.apache.org/turbine/turbine-2.3/howto/hibernate-howto.html)
>is a bit rough and could use some editing.
>
>I've been looking at it, and have some basic questions about it that I hope
>someone can answer:
>
>1) One of the things conspicuously missing is any indication that the
>settings (particularly of the Security Manager) need to be changed in
>Turbine.properties. It seems like if you were making the security system use
>Hibernate instead of Torque, you would need to touch the Turbine.properties
>file. Is this an omission? Or does the howto not cover replacing the
>Torque-based security system? Or is something else happening? (I suspect
>that the answer here is that the HOWTO isn't meant to address the security
>tables.)
>
>2) Assuming the HOWTO is not meant to address changing the security system
>to also use Hibernate, how would this be done? I assume that the brute force
>way is to write a SecurityService replacement from scratch. Has anyone done
>this already?
>
>3) I assume that the HOWTO was accurate at the time it was written. Is it
>still? If not, what has changed to make it inaccurate?
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org