enis / gora

Gora has moved to Apache Incubator, please goto http://incubator.apache.org/gora/
http://incubator.apache.org/gora/
Apache License 2.0
22 stars 2 forks source link

Specify name of table separately from the schema #30

Closed jnioche closed 14 years ago

jnioche commented 14 years ago

We could have several tables using the same schema but requiring different names (e.g. main webtable in NutchBase and tables for the segments) + these names can be generated dynamically and are not necessarily known in advance. AFAIU Gora currently assumes that there is 1 table per schema and gets its name from there which is a limitation. I suggest that we separate name of the schema from the name of the tables, by default if no name is specified for a table then the name of the schema would be used

enis commented 14 years ago

Fixed at c24d156a1bab26cdffcebef87a11fe626892c6b2. This patch changes the XML mapping file structures a bit, so that the top level elements are now elements, rather than

elements. Test mapping files gora-sql/src/test/conf/gora-sql-mapping.xml and gora-hbase/src/test/gora-hbase-mapping.xml should be fairly obvious. However, more info for the exact schemas of the files will be provided soon.