mapping

Constant Latitude Line in Matlab

I'm new to mapping and would like to plot a line of constant latitude at -68 with longitude extending from -80 to -65. If I use linem or plotm with the four coordinates I just get a single point. The only way I can kind of create a fake lat line is to use a track2 great circle. But this line is not rounded the way a true latitude line wo...

hibernate deletion problem please help urgent

i have a course object. The course object has a set of tutorials and a set of applications. When i delete a course objects i want the assocated set of tutorials and applications to get deleted. My course.hbm is as follows and my application.hbm contains <property name="appdatetime" type="timestamp"> <column name="appdatetime" lengt...

NHibernate, one-to-one mapping, cascade insert

I have a one-to-one relationship between a Company class and a CompanySettings class. When I create a new Company object, (a CompanySettings object is created in Company's constructor for its Settings property), and then SaveOrUpdate(session, companyObject) I expect the INSERT to cascade from the Company to the CompanySettings. Howeve...

NHibernate Mapping File Help

Hi All NHibernate noob here. Looking for advice on how to map the following common scenario: [Store] id pk Name [StockItem] id pk Name [StockItemStore] id pk StockItemId fk StoreId fk ParLevel I have created a domainmodel that allows various StockItems to be assigned to various Stores via the StockItem Entity using a AssignToStore(S...

Virtual Earth or Google Maps

Simple question, the answer may not be... I'm going to be developing a web app (ASP.NET MVC) for a client. They have asked me for an opinion on whether to use Google Maps or Virtual Earth for providing a mapping solution. Which would you go for and why? Or are there others you can recommend? What else do you need to know? Street vie...

Mapping and query for three way many-to-many-to-one in NHibernate

UPDATE: I mistakenly pasted query code from the wrong overload. At the bottom is the fixed code Hi, let's say here's my domain. I'm tracking some sport Events like say car races. Each Race has Racers who take part in the race. Racer is a Driver in particular Race (it has the Driver, start lane, run-time, etc). Driver has things like...

How to make a mapped field inherited from a superclass transient in JPA?

I have a legacy schema that cannot be changed. I am using a base class for the common features and it contains an embedded object. There is a field that is normally mapped in the embedded object that needs to be in the persistence id for only one (of many) subclasses. I have made a new id class that includes it but then I get the error t...

help on hibernate mapping problem... leads please! :)

Okay, so I have torn what I had down and am rebuilding it, here's what I need to do. I have an entity called Property with: String name; @ManyToOne EntityType type; ??????? value I need to store a Value too, but depending on the Type, the value could be either a String, a Double, or a link to another object (of Class type.getJavaCl...

Fluent NHibernate Mapping Issue.

Hey everyone. I am trying to map several tables using Fluent Nhibernate. My tests are giving me the following error: NHibernate.Exceptions.GenericADOException: could not initialize a collection: [FluentWeb.Domain.Employees.Orders#1] I am trying to map a one to many relationship between Employees and Orders. Orders then has a many to ma...

How do I output the HBMs that Fluent NHibernate Creates?

I am debugging my fluent application and would like to see what the generated files look like. Can someone help me out? -Nick ...

Fluent Nhibernate Generates Invalid column names in One-to-Many

Hello.. Fluent NHibernate Generates invalid columns names within a Many to one relationship. enter public EmployeeMap() { Id(x => x.EmployeeID); Map(x => x.FirstName); Map(x => x.LastName); Map(x => x.City); Map(x => x.HireDate); Map(x => x.Title); HasMany(x => x.Orders) ...

Hibernate: mapping 3 tables

Hi, I'm trying to map some existing tables with Hibernate. It's quite simple: we've got categories that have names in multiple languages. The DDL is as follows: create table language ( id integer not null auto_increment, code varchar(2) not null, unique (code), primary key(id) ); create tabl...

JPA Map<String,String> mapping

How can I map a Map in JPA without using Hibernate's classes? Thanks in advance. ...

Is there a value in using map() vs for?

Does map() iterate through the list like "for" would? Is there a value in using map vs for? If so, right now my code looks like this: for item in items: item.my_func() If it makes sense, I would like to make it map(). Is that possible? What is an example like? ...

capturing what keys were used to launch vbscript

I have an application that has 'macro' capabilities. When I map some keys on the keyboard to perform the 'macro', I can also have it launch vbscript instead. What i'd like to try and do is within my vbscript figure out what keys were used in order to launch the script. Is it posible to do this? Could there be a way in vbscript to figur...

How I can map a service running on a specific port number to an alias on Unbuntu?

How I can map a service running on a specific port number to an alias on Ubuntu 8.10? For example, I have a webservice which I can access like this: http://localhost:3000/ But I want to access like this: http://myservice/ I only want to access the service from the same machine. I am running Ubuntu 8.10 and I thought at first I coul...

Mapping Linq-to-Sql entities to custom domain entities

How could I map my Linq-to-Sql generated entities (DTO’s) to my domain entities? The problem is that I can’t map the associations because they are not of the same type. The DTO’s uses EntitySet and EntityRef and my domain entities uses IList and T. I’ve looked at some blog post: Ian Cooper's architecting-linq-to-sql-applications-part-5 ...

Dragging markers with Ordnance Survey/Openlayers api

I've created a site link text using the api produced by the Ordnance Survey (I think this is called OpenSpace) which is based on OpenLayers. I've got it so you can click on the map to add a marker and I want to then be able to click on the markers and drag it around the map. Is there a simple way to do this using either the OpenSpace or ...

What is the use of edi - gentran ? what is called mapping in gentran?

What is the use of edi - gentran ? what is called mapping in gentran? ...

NHibernate "database" schema confusion [.\hibernate-mapping\@schema]

I'm using NHibernate primarily against an MSSQL database, where I've used MSSQL schemas for the various tables. In my NH mapping (HBM) files, I've specified the schema for each table in the mapping as follows: <?xml version="1.0"?> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" auto-import="true" ...