[Lift] Re: Props file example

2009-10-12 Thread my_lists

Thanks for the information


On Oct 12, 2009, at 3:36 PM, Peter Robinett wrote:


 It's a simple java.properties file. You should place it in src/main/
 resources/props. There is a search order but, off the top of my head,
 the last two options are the username running the app (e.g.
 peter.props) and default.props.

 My peter.props looks like this:
 db.driver=com.mysql.jdbc.Driver
 db.url=jdbc:mysql://localhost/myDB
 db.user=myUser
 db.password=myPassword
 isPeter=true

 Notice that you can define your own properties.

 Peter Robinett

 On Oct 12, 2:42 pm, Guillermo Acilu my_li...@me.com wrote:
 Hello guys,

 I am starting to learn Lift and I have a very silly question.

 I am using postgresql and I have seen that the file boot.scala reads
 the configuration parameters like connect string, user name and
 password, from a properties file called Props. I could not find an
 example of such a file in any document or in google. Is it a XML file
 or a simple java.properties file? Could you please send me an small
 example?

 Thanks in advance,

 GA
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Complex primary key

2009-10-12 Thread my_lists

Hello guys,

How can I create a mapper with two or more fields as primary key?

For instance if we have a table of people with a Long primary key  
called ID generated by IdPK, and also we have a table of addresses  
also with a Long primary key called ID generated by IdPK. The idea  
is to create an association table with both IDs to represent people  
with many addresses and addresses with multiple people. So both IDs  
will be primary key of the new table.

Thanks in advance,

GA


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---