I have the following code:
@Entity
@Table(name = "my_table", schema = "my_schema")
@SequenceGenerator(name = "my_table_id_seq", sequenceName = "my_table_id_seq",
schema = "my_schema")
public class MyClass {
@Id
@GeneratedValue(generator = "my_table_id_seq",
strategy = GenerationType.SEQUE...
I've seen some examples, but trying to better understand how "Resource" files work, such as embedding images, reports, schemas, etc.
If building an application, I want to make sure everything is available when deployed, but for things like reports and schemas, I don't want anyone accidentally deleting, renaming, or otherwise mucking aro...
Oh lovely Progress..
I have a linked server set up between sql 2008 and a Progress OpenEdge 10.1b server.
How do I get the table schemas?
...
I have some big problems with symfony and doctrine at the beginning of a new project. I have created database diagram with mysql workbench, inserted the sql into phpmyadmin and then I've tried symfony doctrine:build-schema to generate the YAML schema.
It generates a wrong schema (relations don't have on delete/on update) and after this I...
Hi,
Is there any other method than nHibernate by wich we can generate db schema from class definition? My classes arn't that complex etc (few one-to-many relations). However I would like to just be able to save my objects in db and recreate schema if needed.
I am stuck with .NET 2.0. I am not that particular about performance for this p...
Looking to nest (to unlimited levels) elements in XML. Like so:
<items>
<item>
<name>Item One</name>
<item>
<name>Item Two</name>
</item>
<item>
<name>Item Three</name>
<item>
<name>Item Four</name>
</item> <!-- etc... -->
</item>...
I am saving a reference to an RSS Feed in MongoDB, each Feed has an ever growing list of Entries. As I'm designing my schema, I'm concerned about this statement from the MongoDB Schema Design - Embed vs. Reference Documentation:
If the amount of data to embed is huge
(many megabytes), you may read the
limit on size of a single o...
This is a very minor behavior when compared with the entire scope, but it is one that I'd like to put a stop to.
I have created a very, very simple SharePoint Feature. It has two elements in its manifest: an aspx webpart page, and an elements xml. I'll paraphrase my elements xml, which just adds a module, below.
<Elements xmlns="http:...
If got a table "Article" and a table "Tags". Articles can have multiple tags and tags can hang to multiple articles.
The class BaseArticle looks like this:
abstract class BaseArticle extends Doctrine_Record {
public function setTableDefinition() {
$this->setTableName('article');
$this->hasColumn('article_id', 'integer', 8, arra...
I have a certain web application that makes upwards of ~100 updates to an Oracle database in succession. This can take anywhere from 3-5 minutes, which sometimes causes the webpage to time out. A re-design of the application is scheduled soon but someone told me that there is a way to configure a "loader file" which loads the schema into...
Hi there,
I'm working on a shopping cart in ASP.NET 3.5 in Visual Studio 2008, and I've defined the cart object using a typed datatable in my dataset file. This is great as I can setup and edit the table schema visually which is nice.
On the cart page I want to drop a gridview to show the contents of the cart datatable which is held in...
Hellow all,
I have the following xml lines:
<customer id="3" phone="123456" city="" /> <!--OK-->
<customer id="4" /> <!--OK-->
<customer id="3" phone="123456" /> <!--ERROR-->
<customer id="3" city="" /> <!--ERROR-->
"phone" and "city" attributes are optional, but if "phone" exists, a...
I'm using Qt C++ and am reading in an XML file for data. I want to ensure the XML file contains valid elements, so I began to write an XML Schema to validate against (Qt doesn't support validating against a DTD). The problem is, I'm not sure if my Schema itself is valid, and I can't seem to find an actual XSD validator. I tried using the...
I am about to install some 20 servers with the same web application in multiple locations connected to their own local database. I will be updating the web applications remotely (perhaps using debian's package manager) and I'm sure will eventually need to update the database schemas. Since each server could be eventually be using a dif...
Hello,
I am biulding an e-shop that will have configurable products. The configurable parts will need to have different prices and stocks from the main product.
What database design would be best in this case?
I started with something like this.
Features
id
name
Features Options
id
id_feature
value
Products
id
name
price
P...
What are some programs that people use to map out a database schema with several tables and inter-connected keys? Preferably for OS X.
...
Hi!
I'm implementing a new machine learning algorithm in Java that extracts a prototype datastructure from a set of structured datasets (tree-structure). As im developing a generic library for that purpose, i kept my design independent from concrete data-representations like XML.
My problem now is that I need a way to define a data mod...
Hi,
I need to change the storage schema of the entities on runtime.
I've followed a wonderful post, available here:
http://blogs.microsoft.co.il/blogs/idof/archive/2008/08/22/change-entity-framework-storage-db-schema-in-runtime.aspx?CommentPosted=true#commentmessage
This works perfectly, but only for queries, not for modifications.
Any...
Hi All,
I have used jdom for xml validation against schema. The main problem there is that it gives an error
FWK005 parse may not be called while parsing
The main reason was that multiple of threads working for xerces validation at the same time. SO I got the solution that i have to lock that validation. which is not good
So I want t...
I've got a procedure with a prolang of 16386, which does not correspond to any of the entries in pg_lang; what other possible places can I look to find what language this is?
...