I generated a web application using JHipster and added a few entities via the jhipster import-jdl command (e.g. Title). I added an entity instance of Title manually via the GUI and the list now shows that new entry. When I connect to the H2 database as role admin I do not see a table regarding the added entity but obviously it should be there. The JDBC url is jdbc:h2:file:./target/h2db/db/myapp and the folder contains a myapp.trace.db and myapp.mv.db file. The myapp.mv.db file seems to hold the actual database due to its file size.
What am I missing? The database tells me that there is no such table:
I didn't change any default settings such as database location. Why does it not display the added tables when the application clearly has them?
Related
We have an Apex application (version 20.1) and our users must be able to change the database schema at runtime via button click (preferably without logging in again).
Currently we are solving this by installing our application multiple times, once per schema.
We recently discovered the function apex_export.get_application. We intend to use this function to bring our frontend under version control (finally!). We would like to deploy our application directly from the exported files. Having a single application, we would not have to mess with the internal component ids from the exported files.
Is it possible to install the application once and change the default schema via Pl/SQL code? Thank you!
I don't think this can be done, but perhaps the following is a reasonable compromise
add all the schemas you need to support to the workspace schema list
Any SQL (and I do mean any) in your app would be prefixed with an application item, eg
Before: select * from my_table
After: select * from &my_schema..my_table
At login time (or when a user selects it) you modify the MY_SCHEMA application item
(I've not tried this...so test/tread carefully)
As you know, parse.com will be closed.
I made export of all collections.
Now i have the many dumps of collections.
Collections name like:
_User
AppParentCompany
It's normal tables name, but between this files i have relations, a relation contained in the next file:
_Join:parentCompanies:_User.json
Latest file name i understand like:
_Join - is relations
parentCompany - it's column
_User - a collection containing parentCompany column
Based on this, i have next questions:
How i can import this relations into a database?
What name will be for this collection of relation?
Thanks!
Take a look at this page: https://github.com/ParsePlatform/parse-server/wiki/Migrating-an-Existing-Parse-App
Prepare mongodb database connection string first.
Go to Parse your project's App Settings > General.
Find App Management > Migrate to external database. Press Migrate button.
Enter your database connection string, it will start with mongodb://...
Then press Begin the migration.
Then Parse will do the rest for you.
P.S. If you are using mongolab, go the web browser, into your database, then you can find _Join:xxx:xxx, _SCHEMA and more in Collections.
I am new in MVC3 i am going to create a MVC3 test project where i am create model class name WhiteAccount with ID,Name,Email,Password property. and successfully create a DB but when i add another new property in that WhiteAccount model class and in my DB table too but it give me some error. Some people say just delete the EDMmetadata table from your DB, But Here is the problem i have no EDMmetadata table in my DB ! I create my DB by EntityFramework v4.3.1 system automatically (CodeFirst). What should i do now ?
Check for the __MigrationHistory table.
Open the nuget package manager console and run
update-database -script
It will likely give you a message about having to enable it first, follow those directions
Run: Enable-Migrations
some more info on migrations
http://blogs.msdn.com/b/adonet/archive/2012/02/09/ef-4-3-code-based-migrations-walkthrough.aspx
Im gathering this table is there in your db (under system tables) and it contains your model information. Since your project changed you need to tell the migrations about the new field or delete the table (__MigrationsHistory)
I am currently trying to setup an ASP.Net MVC 3 Application for the first time. I know what I am doing with Ruby on Rails but completely lost with ASP.Net. I would like the app to create the database but not sure what I am doing wrong. I have an empty Database build called ssDB. I have setup the connectionStrings and built out the Model classes. According to everything I have read thus for, when I go to the run the App it should create the database but it doesn't look that way.
The Abbreviated Error I get is:
InnerException: System.Data.SqlClient.SqlException
Message=Invalid object name 'dbo.Users'.
Source=.Net SqlClient Data Provider
ErrorCode=-2146232060
Class=16
LineNumber=1
Number=208
Procedure=""
Server=TESTSVR01
State=1
I have an empty Database build called ssDB
You have created an empty database with no tables. Since there is a database EF assumes tables are also created. Hence it will not proceed to create the tables.
You can drop the database and allow EF to create the database and the tables.
I also experienced the same issue while using Database first approach. Connection string in my service's/service's host web.config was incorrect. I corrected the connection string and it worked.
I have an mvc3/EF4.1 model that has an .edmx bound to a Db locally. I have to move this model to Database to another server.
Q: What steps do I need to make so that when I right click on the .edmx and "Update Model/Database" that it selects and picks up that same model but on the new server? Thx!
Open your web.config and look at your block. The connection information to the server is listed in there. Simply change it to the new server.
The full format is listed here:
http://msdn.microsoft.com/en-us/library/cc716756.aspx
If the new server is using the same authentication, just change the server name (the 'Data Source=localhost' section) to be your new server name.