Using own User and Group tables

05 Mar '14, 01:43 PM
44,307 Views
No Forum Badges

I currently have my own User and Group tables of my own design in my database.  I would like to use them instead of the default tables.  Is that possible?

 
x 0
Follow
Answer Answer at this question and get points!
Forum Starter - Level 3

Hi

yes, this should be possibile.
As you probably know, webratio always needs the user-group-module entities and their relationship, but you are allowed to extend them with your specific fields. Thus, if you want to use your own tables, in my opinion you should follow these stesp:
- check whether your tables completely extend the user-group-module structure, or not; carefully check every attribute, the relationships, and the user_group and groups_module tables (N:N relationships); if something is missing, add it in your database using names at your choice;
- in webratio, remove the mapping from these entities and relationship;
- refresh the database icon, so that webratio is aware of your database tables;
- redefine the mapping, for both entities and relationships: for each entity, attribute and relationship, choose the corresponding name in your database;
- perform a synchronize, and import in the datamodel as new attributes every specific column in your tables not already loaded in webratio; eventually you may even rename these attributes.
At the end, you should have no errors in find model problems, and nothing to synchronize, at least for which concerns the user-group-module area.

Please ask detailed instruction if needed.

 
x 2
No Forum Badges

So, I am supposed to remove the user--group--module entities from my WebRatio project.  Then I extend / create the entities already in my database to match the user-group-module.  Do the names have to match?  How does the login and other units know to use the correct entities?

 
x 0
No Forum Badges

It is not possible to remove the user-group-structure in WebRatio.  Or is it?

 
x 0
Forum Starter - Level 3

No, you cannot remove user-group-module entities, and you don't need to do so.

Instead, add your specific attributes (the attribute in your application not already in the WR datamodel) in the User entity.

Then remove the mapping (in the data model, right click on User, then choose Remove Mapping) from these entities. Make sure your database is correctly addressed, checking the properties and verifying that the url is correctly defined. Then right click on the database icon in the Outline view, choose Refresh. Click on User Entity in the Data Model, and in the Mapping tab inside the Property view (the second item starting from top) choose the corresponing schema and table; do the same for each attribute and relationship.

 
x 0
Answer at this question and get points!

Related questions

502 proxy error-generate and run Adding and deleting from the database Agregar boton de cambio de contraseña en el login Alimentar graficas con base de datos Atributos Condicionales heredados Attribute comparison in a selector unit [beginner] - How to store and browse data collected with BPM app? Business object data Cancellare campi e tabelle dal database Cannot add a Database in the Domain Model Cannot connect to MySQL Cannot insert an entity in the database Cannot invoke method selectSingleNode() on null object Can't generate and run database or start tomcat server! Change uplod directory and protect anauthorized access to files Como mostrar una imagen en una lista o en la componente detalles? Como recuperar todos los atributos de una relacion N:N y insertar registros? Conexion a Oracle 12g Connection refused. connect to Cloud Convert data in a Calculated attribute Convert selector component result to single value Creación DB Apache Derby - Modelado BPMN Criptare dati sensibili nel database Database connection, Host and Port number Database password encrypting Database properties Database resource consumption Database Tables Creation After Remote Deploy DB in Data Service Project Deploy in Cloud Amazon Beanstalk with Postgres Dynamic data type Empty record mistakenly saved Error updating metadata process EverLasting error "The TCP/IP connection to the host has failed. Connection refused" Execute truncate sql query file analysis then update MySQL database Find Model Problemas Foriegn key relationship Generate and run locally on webratio professional edition. getting data from database Groovy and Database Guardar Saltos de LINEA Hide a form if condition if true How can I import a view in the Domain Model as an attribute of an Entity? How database or datamodel migration? How I can receive the primary key value after adding into database from OK Port. How to block empty string in Database How to disble derby database? How to fix Network error(status 0) How to run web app with authentication service How to show certain values derived from relations in the domain model? I can't run any application with WebRatio (Table/View 'APP.POST' does not exist) Image in List field Insert data into database Is it possible to create a derived relationship between databases? JDBC4 Postgresql Driver JDBC connection with mysql on mac Job not start correctly Mapping database of the entity '...' is unspecified [MOBILE] Can't synchronize domain model with beck end DB Mostrar datos de diferentes tablas/ show dates from diferentes entities MS SQL server jdbc file multi selections field problem MySQL Driver jdbc No Apache Derby driver found No Database on Cloud account No database on my cloud account Passing JSON Object to Model Personalizzare lo stile di un progetto PostgreSQL Predefined values in database Problem accessing MySQL with WebRatio 6 Problema Grafo da una lista gerarchica Problema ¨HTTP Status 404" Problemas con el Operations View Delete Problem saving multi selection from input Problems to connect Sql Server DB from Webratio Problems with Database Metadata Problem with fields with accents used in attribute condition Problem with query unit! Problem with stored procedure Problem with the deletion of more than 50.000 records in a table publish web service for storing information in PostgreSQL DB following XSD Resource query a database Refresh and Synchronize DB Problems Relaciones Removing the User-Group-Module tagles Retrieve a value and add some value to it reverse engineering, problema con le relazioni di default Script Unit e Mysql Share database connection Solve "Generation Error" with Generate and Run option Statistics Component for WebRatio > 7.2.0 Status ProcessInstance and activityInstance in spanish Sybase JConnect 4 JAR replace Sync DataService Project with Mobile Project Table 'freeapp43.profesion' doesn't exist Tarea de servicio no me evalua el valor Trying to Synchronize Domain Model Unable to execute the script java.lang.NullPointerException Unknow property on Dynaclass after generation Unspecified BPM Engine Database Update mutiple records with the same value upload file and the move it to other location User Login Timestamp Username come chiave Web ratio data model WebRatio - list results of joined tables Web Ratio Mobile and Foreign Key Web Ratio Mobile - Remote data mapping problem WebRatio no imports all attributes (fields) of a table Where is the ACME demo data stored?! White report