Hi,

I am extremely sorry to trouble you.

Could you please guide me what is the easiest way if I want to use table
Tperson from a different postgres database instead of table eperson?.

Thank you
P

On Wed, Apr 25, 2012 at 1:45 PM, helix84 <heli...@centrum.sk> wrote:

> On Wed, Apr 25, 2012 at 13:39, Priya S <priya579...@googlemail.com> wrote:
> > If I want to use a table Tperson instead of eperson, is it enough if i
> > replace eperson with Tperson in PasswordAuthentication.java?.
>
> Definitely not, that's a variable name, not a table name.
> One approach is to derive a class from EPerson
> (dspace-api/src/main/java/org/dspace/eperson/EPerson.java) and replace
> the table name inside it. Then include your derived class in
> PasswordAuthentication instead of EPerson.
>
> Another approach is to do any extra database calls you need directly
> in PasswordAuthentication.java.
>
> Remember that if you want to connect to a database on a different
> machine, you need to change the context given to DatabaseManager
> accordingly.
>
> Regards,
> ~~helix84
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to