Hi,
I have a two classes that I'm trying to map:
public class Data
{
public virtual int Id {get;set;}
public virtual ValueObject Primary {get;set;}
public virtual IList<ValueObject> Secondary {get;set;}
public virtual void SetPrimary(ValueObject valueObject)
{
valueObject.Data = this;
Primary = data...
I want to include a open-street-map widget into my apache wicket application. Im using the wicket-contrib-openlayers component from wicket-stuff and the following code:
List<Layer> layers = new ArrayList<Layer>();
Layer layerOSMTilesAtHome = new OSM("Osmarender", OSMLayer.TilesAtHome);
Layer layerOSMMapnik = new OSM("Mapnik", OSMLaye...
Hi,
According to Spring framework API
UrlFilenameViewController's purpose is:
Transforms the virtual path of a URL into a view name and returns that view
If i request for /info.xhtml, its logical view name is info
See UrlFilenameViewController documentation
Both web.xml and controller is mapped according to
/WEB-INF/web.xml
<...
Hi
I have a schema that contains the details for an order. Within the schema, I have a collection of line items containing details of each item within the order. Schema is similar to the following structure.
Order
SaleItems
SaleItem
OrderID
Price
Quantity
etc.
I have a requ...
Hi,
I want map my object model to NHibernate. There is one tricky part in my concept and I don't know if it is possible to do this in NHibernate.
I want to have a collection of trees. I have two classes (below, only important properties indicated). Component is a node of a tree and ComponentGroup is a collection of trees.
public class...
ingredients:
- one vector map
- one masked viewing area
- one slider taking the map from 100% to 600%
- map is draggable
- map movieclip center is the top left of the movieclip
Let's say you zoom in, you drag the map so that the bottom right quadrant is in the viewing area, then you zoom out.
The problem:
Because the "center" of the ...
I have a table in database which has some columns like year,name and also 12 columns (m1,m2,...,m12) representing months. I would like to map this table into one class using NHibernate, ideally, these 12 mapped columns would look like:
_mappedMonths[] = new double[12];
Has anyone a solution for this ?
...
Is there a way to convert a linear shape file into a csv file of the following format:
Node_1, Node_2, attribute_1, ...., attribute_x
1 2 "hello" 567845.334
I have looked at GDAL/OGR2OGR and PostGIS and i don't think either converts the data to the format I want.
I don't mind writing a script to do it, if i'm ...
I have a class A that has a set of B's. However, these two objects are linked by fields that are NOT the primary key.
For B, I can use , but how do I specify that the join should be in A.secondary_column, Not A. table_primary_key_id ?
<class table="a">
< id column="table_primary_key_id" >
< /id>
<property column="secondary...
Possibly a dumb question but I have a number of entities all inheriting from a base entity. The base entity does not have a table in the database. Each entity has its own table and the table definition is exactly the same. Extremely simplified example of the code is below.
public abstract class BaseEntity
{
public virtual string som...
I've been provided with a table of data which includes columns for latitude and longitude. The data is US only. What I've like to do is to feed this data to Google Maps or a similar tool like Live Maps and have the data points plotted.
Does anyone have a code sample or know of a library that makes this task simple? I can read the values...
I have a Coplat message in the following format
DEB1234567890 5 CODE1 5 2007020610471COPLAT0
(... other data here ....)
DEB1234567890 5 CODE2 5 2007020610471COPLAT0
(... other data here ....)
FIN00000245
the above message has two DEB sections as you can notice.
I want to create a Copaym message that can be map...
I want to make a map program that gives directions around a campus (residence halls, football field, etc), and within buildings (to offices, cafeteria, etc). Is there anything existing that would help facilitate that?
The alternative seems to be that I would have to create my own map of points and paths around campus and do path-finding...
What is the best way to map a network share to a windows drive using Python?
This share also requires a username and password.
...
Hello,
I have a User with related Permissions. Here is what I want:
I create a User and add a permission to the User.Permissions collection. It gets saved and everything happens as expected.
Then I edit the user and remove the permission. A new user object is then created and the permissions collection is empty. The identifier and...
My bidirectional collection mapping seems to only work in one direction. One job will have some number of costs. Each cost is associated with one job. The problem is, when I load a job, the costs collection is empty. However, when I load a cost and navigate from it to the job and then check the costs collection, it is properly filled. Ca...
I have a legacy system where the relationship between 2 tables haven't been defined explictly and there aren't any keys (primary or unqiue defined). The only related columns is 'Username'
Something like:
Table: Customer
Column: Id,
Column: Username,
Column: FirstName,
Table: Customer_NEW
Column: Username
Column: FirstNameNew
I have ...
With MapKit in the iPhone 3.0 SDK, you create objects that conform to the MKAnnotation protocol. Loading these onto the MKMapView is very easy. However, when a user scrolls the MKMapView, it's time to load new annotations. A likely place to request the new objects would be in mapView:regionDidChangeAnimated: which is called when the map'...
I'm trying to go the opposite way of what you would normally do.
I have two POCO classes A and B where B inherrits from A
public class A
{
public int Foo { get; set; }
}
public class B : A
{
public int Bar { get; set; }
}
B is ment as an extention to A with additional information.
I start by having an instance of class A
A a...
EDIT: I simplified the problem to leave only what really bothers me.
Hello all,
I am trying to make the following mapping.
In my database, I have a table called "ReportRowValue" containg the following columns:
RowNumber
ColumnNumber
StringValue
LongValue
DateValue
Value
In my code I want to get a more usable structure by...