lets say I have an EJB application wich defines some entities and relations among them. I figured the DB schema can easily be created from the entities. So now the app ... |
Before we start I know a fair few people consider tests that hit the database not "unit tests". Maybe "integration tests" would be a better name. Either way developer tests ...
|
I have a Java-application that loads data from a legacy file format into an SQLite-Database using JDBC. If the database file specified does not exist, it is supposed to create a ... |
I'm looking for a lightweight, open source, more or less cross-database Java library that would allow me to read off metainformation on columns, tables and integrity constraints given a DataSource.
|
I'm trying to create a test database (with H2 database). I'm using Oracle in production, and it seems nice to have oracle compatibility mode in h2.
However I've got a problem with ... |
I have to make a web application multi-tenant enabled using Shared database separate schema approach. Application is built using Java/J2EE and Oracle10g.
I need to have one single appserver using a ... |
I'd like to compare if
- tables
- columns including datatypes and length/precision.
- indexes and their columns
- constraints
in two database schemas are identical.
Is there anything like this available? Maybe from one of the database migration managing ... |
|
iBatis comes with three schema files that provide intellisense to VS.Net.
According to the iBatis help docs, the location should be this:
C:\Program Files\Microsoft Visual Studio 10.0\Common7\Packages\schemas\xml
or this if you have ... |
Hi
I'm starting development of a small content management system but struggling to figure out how to get started. Does any one know where I can get a database schema or ... |
Is there any tool that could be used to generate some code for apache Axis2 from a (my)sql schema. For example, the following schema:
desc name;
+-------+------------------+------+-----+---------+-------+
| Field | Type ...
|
Just getting started with DB4O object oriented database.
I'm very familiar with SQL, if I upgrade the app and add a new field I just go into a SQL manager, change the ... |
I'm making a simple program in Java. Given a set of letters it'll list all the words (with more than 2 letters) that match the combinations of the letters.
For example:
... |
I am calling SqlSession.openSession(Connection) in MyBatis. The Connection is to a MySQL database and does not have a schema specified in the URL (e.g. jdbc:mysql://localhost). I'd like to set a "default ... |
I have a problem of dealing with close to 100000 xml records. The problem is to construct a schema mapping from xml schema of these records to relations
Any ideas in ... |
I've been trying to connect my application with a derby DB, containing the table ITEMS inside.
The problem is when I try to insert an element in this table. When I ... |
Hy!!!
I want to make a small DB Demo.
My Error is: Schema 'TEST' does not exist
Picture:
|
can some one pls tell me how to get the 'schema name' for a particular 'sequence' using jdbc
|
We are using JDO in one of our projects. This has been running for quite a while and naturally we need to change the model a bit.
What is the best practice ... |
There is a third-party application, which database is accessed by my application. It's database schema had been changed several times, so, there are about four different database schemas right now (different ... |
I want to migrate my data from one DB to other using Java. Both DBs have different schema structure. I might also need to define some mapping / validation rule. Can ... |
I have tried this plugin on 2.0.0 RC3. Any pointers will be helpful.. Set the configuration etc in Config.groovy and running the 'grails db-reverse-engineer', I get the following error: log4j:WARN No ... |
so, in databases like Oracle we have multiple schemas, and the user that is connected will have privileges to multiple schemas. i just noticed that the interface for reverse engineering the ... |
Hi, after i've created the table. In Service windows when i expand the database/master: public is hilghted but my table is in dbo. How is it possible to have the dbo ... |
Hello, If I try to create a new 'Entity Class from database' in NB 6.9 for JPA application, I have to enter Database Connection f.e. jdbc:oracle:thin:@161.14.22.66:1565:TESTDB OK! It 's not a problem. It is also not a problem if an Oracle-shema has only a couple of tables(10-20 perhaps). NB queried them all in 2 secodns. The trouble comes if my Oracle-shema ... |
I've been seeking, without success, a function to regenerate an existing project's application code to recognize a change in a database it's using, e.g. addition of a new column; after performing a "Recapture Schema from Database." The only solution I can see is to re-perform the steps as documented in the "Creating the Application" section of the "Building a Java Desktop ... |
i'm using netbeans 6.9 and i wanted to create a database by clicking on the Java DB node in the services palette but after doing the appropriate steps i found many shemas of databases (APP, SQLJ,,) i want to remove those schemas because when i try to bind a Jtable with the database i find NO tables all i want to ... |
|
|
|
has anybody seen any example applications on the web or in a book cdrom somewhere as part of a tutorial or a discussion, where an ecommerce application database schema is shown? i'm looking for a typical example for a proposal - i mean, i can think up a few tables already: order, order items, articles, users etc etc. i'm hoping out ... |
|
Hi, hope you can help me out. I have written a tool which can connect to different databases via JDBC or ODBC, it has been working perfectly till now. The problem I am having is retrieving tables for a specific schema/view. Up to now I have been using the userid (which the user connects to the db with) as the schema ... |
|
JDO has two forms of identity: datastore and application. Application identity is similar to primary keys in a relational database and all the JDO relational implementations support this. With an existing relational schema, you are not likely to have inheritance represented in your tables, so you would typically not have inheritance in your classes. Your foreign keys in the relational schema ... |
So, I have a request processing system which receives slightly different XML messages from different sources (client applications). The requirement is that every request needs to be logged into a database. Now, the question remains, how should I design the database schema for storing these log entries when one complex element in the incoming requests varies? Of course I could have ... |
|
G'Day all, Thought I'd make a post to see what other people think of something I just started to think about.. I'm developing a swing based App, at the moment during development i'm switching between using mySql & hsqldb as my database for the app(Just because I find the gui's available for mysql easier to use, but the final version will ... |
Hi! I was wondering what might be the pros & cons of separating one app's data in multiple schemas (based on years for example)? The other solution might be to keep it all in one schema and have a naming convention. This is necessary because the data types and length in one (or various) table(s) might vary from year to year. ... |
|
Hi Jeanne, Thanks for your reply. So you just write scripts, and then apply them to your local machine and then apply it to the production server? That makes plenty of sense, I guess that I just need to be better organized. After I make a schema change, I invariably have to map it in hibernate (perhaps redo if I have ... |
Try putting some cardinalities on those arrows. Put them on in the format 0..1 or 1..n. See whether you get any arrows which might have more than one at both ends. Any >1 to >1 cardinalities must be got rid of, but I think you probably don't have any. You haven't underlined or otherwise marked your keys. Some of the fields ... |
|
Hi, a database can have multiple logical partitions called Schemas and you can manage the size,access,creation and deletion of schemas without effecting the other parts of the Database. each schemas can be mapped to one or more DB Files and can be associated with a user. Database should contain at least one schema and one or more schemas contribute to a ... |
|
Hi, I have two Oracle instances which need to be identical. One is built from an old base schema and a number of patch scripts. The other one is built from a new schema file which should be the same as the fully patched database. Is there any way to easily compare two databases using something like db-unit? I will need ... |
I am making a utility to read a database and generate SQL INSERT statements for each row in every table. I want to be able to move data with a script from one DB to a DB at another job site. I am currently using MS SQL 2000. Problem is...the schema has foreign key (FK) constraints. I get the meta data ... |
Barring the case of enterprise users, where users are defined outside the database and then multiple users can be assigned to a particular schema, the relationship between users and schemas is 1:1. A schema is the set of objects owned by a database user. A single database user, by definition, cannot own objects in different schemas. |
I am beginning a project that will require java, xml schema and relational db interaction. I'm hoping for some expert opinion on tools and/or approaches to use. The project will be saving data from a web service in a db schema that should 'match' the xml schema of the web service. So, question one: is there a tool that will generate ... |
|
|
Hello! I am new to this site, and came to it by looking for a code generator for ODBC table accessors. I am testing Jenny out to see if it suits my needs. I have run into an issue with using a Postgres DB. When using the Jenny generated method for getting a row from a table, the generated SQL statement ... |
|
Hello, I need to compare 2 mysql database schemas (tables, columns, used data types, keys, constraints) and would like to have the differences displayed. Is there any free tool that can be run from the command line and which generates a report? Or is there a nice Java API which I can use? I know, there is some useful stuff in ... |
Hi I want to make application for studying boardgame (chess). Idea is to make collection of positions where I made poor move. I want to be able to add from many possible themes to a position and search collection by different themes to practice those types of positions. I cant make up my mind wether to simply make relational database schema ... |
|
No. A schema is a group of tables owned by the same user. For example I could have "vinod" schema and "jeanne" schemas in the same database instance. Each could have a "test" table because the schema gives a different namespace. Like a package does in Java. A database instance is even higher level. Kind of like a separate database except ... |
|
import java.sql.*; public class ListSchemas { public static void main(String [] args) { Connection con = null; try { Class.forName("com.mysql.jdbc.Driver"); con = DriverManager.getConnection("jdbc:mysql://localhost","root","ssahmsb97"); DatabaseMetaData meta = con.getMetaData(); ResultSet res = meta.getSchemas(); System.out.println("List of schemas: "); while (res.next()) { System.out.println( " "+res.getString("TABLE_SCHEM") + ", "+res.getString("TABLE_CATALOG")); } res.close(); con.close(); } catch (java.lang.ClassNotFoundException e) { System.err.println("ClassNotFoundException: " +e.getMessage()); } catch (SQLException e) { System.err.println("SQLException: ... |
Your question is still too general, but I'll take a shot answering. One option would be to execute DDL statements using JDBC. Another one would be by using the JPA features. In any case, you have to provide your application the database account that have DBA privileges which is not such a good idea from the security point of view. Hope ... |