Q1. Is there somewhere to control the generator naming conventions used by RhoStudio ?
RhoStudio uses the rhodes command line tool to generate code, so doing something like "New" -> "RhoMobile model" -> ... is the same as doing:
$ rhodes model prop_area name,brand,price,quantity,sku
Q2. Is there a way to generate RhoConnect Push models, controllers and views as we do with RhoMobile models ?
If by "RhoConnect Push models" you mean RhoConnect source adapters then yes, you can use the "source" command:
$ rhoconnect source <something>
$ rhoconnect source prop_areas
This will generate two files:
RhoConnect Push is just a simple service designed to interact with a RhoConnect application, it doesn't have any models of its own.
Everything work fine as long as the following are observed:
1. Model name is singular (eg. "Product")
2. Database table name is plural (eg. "Products")
3. Database table names must be a single word only (eg. productcode can't use product_code)
I'm not following #1 and #2 here, the model name and database table name are identical. When I run:
$ rhodes model prop_area name,brand,foo
Then I use FixedSchema with the same properties, indeed I get the same singular, camel-cased table name auto-generated (according to sqlite .schema output):
CREATE TABLE "PropArea" ( "name" varchar default null,"brand" varchar default null,"foo" varchar default null,"object" varchar(255) PRIMARY KEY );
Could you provide details about where you're seeing things auto-pluralizing in the database? The only thing I see happening is names are camel-cased, not pluralized.