composite

Nhibernate , collections and compositeid

Hi, banging my head here and thought that some one out there might be able to help. Have Tables below. Bucket( bucketId smallint (PK) name varchar(50) ) BucketUser( UserId varchar(10) (PK) bucketId smallint (PK) ) The composite key is not the problem thats ok I know how to get around this but I want my bucket class to contan...

How Do I Utilize An SWT Horizontally Scrolled Composite Using GridLayout?

I have an plugin that displays a composite with a horizontal scrolled bar. I can't figure out how to get GridLayout() to position each widget one row, one after another. If the number of widgets exceed the composite width, you should be able to scroll right to see the rest of the widgets. The horizontal scroll bar appears, but has no ...

Eclipse SWT Virtual Composite Question

Is it possible to create a virtual composite using SWT, i.e. one could scroll horizontally or vertically beyond the maximum display area of the composite? I want the length and height of my widgets (images) to stay constant regardless what size the composite is changed to. If there are 50 images to display and only 10 can be viewed at ...

How do composite indexes work?

I've created composite indexes (indices for you mathematical folk) on tables before with an assumption of how they worked. I was just curious if my assumption is correct or not. I assume that when you list the order of columns for the index, you are also specifying how the indexes will be grouped. For instance, if you have columns a, b,...

Composite foreign key columns in GORM

Hi, I need to customize the column names for composite foreign keys in GORM, and I didn't find any document that shows how to do it. I know how to customize PK columns, and how to customize a single-column FK, but not multi-column FK. Is it possible at all? Thanks. ...

Eclipse RCP Image Application: How Do I Lay Out My Images?

Hi, I have an Eclipse plugin that displays a view. What I want to do is display n images in the view in a single row with a centered label under each image. I want to view to be scrollable. I also want each image to be re-sized when the dimensions of the view (ScrolledComposite? Composite?) change so it utilizes the available vertica...

Fluent NHibernate Composite key with Dates

Hi there. I'm new to NHibernate and am having difficulty with a simple but stuborn error. I have a table in my DB (MSSQL2008) where the composite key is made up of 2 date columns. These would represent a time period StartDate and EndDate that is unique for the purposes of my solution. The table definition is as such: CREATE TABLE [d...

WPF composite Application - tab region - view not getting focus

Hi, I'm just starting to use the composite application libraries for WPF. In my shell I have a region in a tabcontrol that is used to display different types of views. I also have a toolbar with buttons hooked up to commands, for example save. The commands are bound in my views, and the views have the canExecute and execute methods. T...

MySql Primary Key > 900/1000 bytes?

I have a composite primary key, which together turns out to be rather large (~2000 bytes). I have no performance considerations, I just would like a primary key to enforce uniqueness. MySql doesn't like long primary keys. Is there a way around this? Perhaps to only enforce uniqueness, without building an index? I wouldn't want to use A...

Inheritance in a composite structure

Hello everybody, i have a problem related to the design of a composite structure. I have an Expression abstract class that describes a generic mathematical expression. The idea is that an expression can be an atomic expression (like "x" or "3") or some kind of aggregation of atomic expressions (like summatories, productories, exponentia...

WPF, Prism v2, Region in a modal dialog, add region in code behind

I have a composite WPF application. In one of my modules I want to make a wizard and have the steps show up in a region so I can switch between the steps easier. Originally I had this wizard showing up in a tab region and the nested region worked fine. Now I want to make it into a modal dialog box, but after I open it the inner region ne...

Composite application guidance help pls

Im tring to make a composite application (i am still learning how it all works) Lets say there are two regions with a view in each that interact with each other via drag and drop, view A contains a list of tasks that view b (which contains a list of People) doesnt really know about. When I select some tasks in the list from view a and...

Python composite pattern exception handling & pylint

I'm implementig a Composite pattern in this way: 1) the "abstract" component is: class Component(object): """Basic Component Abstraction""" def __init__(self, *args, **kw): raise NotImplementedError("must be subclassed") def status(self): """Base Abstract method""" raise NotImplementedError("must be implemented") 2) a le...

python how to create different instances of the same class into an iteration

My problem is: I would like to add to a Composite class Leaf objects created at runtime inside a Composite routine like this: def update(self, tp, msg, stt): """It updates composite objects """ d = Leaf() d.setDict(tp, msg, stt) self.append_child(d) return self.status() Inside main: import lib.composite c =...

Storing Composite Product Numbers

I am designing a laboratory database. Several products, samples, etc are identified by a composite number with multiple parts which indicate different values such as: origin, date, type, id today, etc. Examples of composite numbers might include a driver's license number (X44-555-3434), lot number (XBR-A26-500-2). How should composite...

ASP.net dynamically created control event handling

Essentially I have a placeholder added to the page dynamically on page load. Then I have a composite control that is added to the placeholder and displayed during runtime for specific page events. The composite control has a button. I have a public eventhandler for the button available in the composite control, but don't actually have ...

Composite pattern for GTD app

This is a continuation of one of my previous questions Here are my classes. #Project class class Project: def __init__(self, name, children=[]): self.name = name self.children = children #add object def add(self, object): self.children.append(object) #get list of all actions def actions(...

How can I have Prism/Unity automatically resolve a View (UserControl)?

In a Composite Application (Prism), when my module loads, I get this error: {"The current build operation (build key Build Key[CustomersModul.ViewModels.CustomerAllViewModel, null]) failed: The parameter view could not be resolved when attempting to call constructor CustomersModul.ViewModels.CustomerAllViewModel(Customers...

Does Prism/Unity have a "service preloader"?

I've got a number of modules in a Prism application which load data that takes 3-8 seconds to get from a service. I would like to be able to say in my bootstrapper something like this: PSEUDO-CODE: Customers allCustomers = Preloader(Models.GetAllCustomers); And this would run in a background thread and when the user actually needs t...

WPF Binding: Refreshing Binding after reload of combos from database

I've got two combo's 'Make' and 'Model', they've got their SelectedValue properties bound to an Vehicle object with a ModelID and a MakeID. Heres Model ... <ComboBox DisplayMemberPath="Description" ItemsSource="{Binding Path=ModelSpecs}" SelectedValue="{Binding Path=Vehicle.ModelID}" SelectedValuePath="ID" /> A user can search for Ve...