Re: Concept for modeling hierarchical data
Am Dienstag, 10. Januar 2006 07:51 schrieb Nikola Milutinovic: Florian Lindner wrote: Hello, I'm searching for the best concept of how to use and save hierarchical data. I have a structure like PC file system with meta data. There a folder objects and files objects of different types. Every object have data like permissions, date and author. And they have type-specific data fields like resolution (of an image type) or location (of an meeting type) or ingredients (of an recipe type). What is the best way to store that kind of data? What database is recommendable? What concepts of persistance? Or not using managed persistance and do it manually? If you want to do it manually, a hierarchical tree can be represented by just one table: CREATE TABLE tree ( id INTEGER PRIMARY KEY, parent_id INTEGER ); With managed persistence, be carefull not to configure it to load the entire tree at once. As for a DB, any decent relational DB will do. In this concept I need a table for every type of objekt I want? Regards, Florian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Concept for modeling hierarchical data
Hello, I'm searching for the best concept of how to use and save hierarchical data. I have a structure like PC file system with meta data. There a folder objects and files objects of different types. Every object have data like permissions, date and author. And they have type-specific data fields like resolution (of an image type) or location (of an meeting type) or ingredients (of an recipe type). What is the best way to store that kind of data? What database is recommendable? What concepts of persistance? Or not using managed persistance and do it manually? Thanks for all ideas! Florian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Add application
Hello, I'm just in the process of learnung J2EE / Serlets / JSPs with Tomcat. My book tells me that I should add the XMl snippet: Context path=/BookApps docBase=another/path debug=0 reloadable=true crossContext=true / to the ./conf/server.xml. Since there is no other Context entry like that in the server.xml I doubt that this place is wrong (in my Tomcat version 5.5.14). What is right place to put that? If it is server.xml what should be the parent element of it? Thanks, Florian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]