» Home » Mapping » Page 1
Normal Mapping, Specular Mapping and Ambient Mapping
by Colorado in Development Tools & Services

I have been using http://www.opengl-tutorial.org/ and my shaders below are derived from his tutorials, mainly I have changed variable names and I removed the tag v coord inversion because I am using a dds image. I did replace a vec3 with a value from an ambient texture as well.

Vertex Shader

#version 330 core
// Input vertex data, different for all executions of

hibernate mapping excepiton while mapping the single entity class with two entity-name in hibernate-mapping file
by Thomas Plunkett in Programming Languages

i have tried a program with hibernate to persist in multiple table with the single entity class and defined the hibernate mapping using hbm file.
And code for this is

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"

Knockout.Mapping create mapping hook for simple JSON array
by vxnick in Web Design

When using the knockout.mapping plugin for knockout.js I can customize the way items in a collection are created like this:-

var ItemModel = function (data) {
ko.mapping.fromJS(data, {}, this);
this.FooProperty = ...;
var mapping = {
'Items': {
create: function (options) {
return new ItemModel(options.data);
Knockout mapping + computed child elements + “mapping reload” fails
by jason166 in Web Design

I wish to use Knockout mapping to generate ViewModel.

var viewModel = ko.mapping.fromJS(data);

After creating ViewModel I would like to add computed text element.

for (var i = 0; i < viewModel.Packages().length; i++) {
var pack = viewModel.Packages()[i];
pack.packageClass = ko.computed(function() {
return this.

My hibernate mapping files exist, what are possible reasons that the mapping can't be found?
by undeinpirat in Development Tools & Services

I dynamically generated my hbms. Now when I attempt to use the HQL Editor in Eclipse, I'm getting the following error:

Hibernate Dynamic SQL Window:
HQL was valid, but no SQL generated. Your configuration most likely does not have any mappings defined.

Hibernate Query Result Window:
org.hibernate.hql.ast.QuerySyntaxException: system is not mapped [from system]

Fluent NHibernate Mapping Exception On Compiling Mapping Document
by zclin in Development Tools & Services

I have an NHibernate configuration file as follows:

<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" >
<session-factory name="MyProject">
<property name="dialect">NHibernate.Dialect.MsSql2005Dialect</property>
<property name="connection.provider">NHibernate.

Confused with uni -direction Mapping and Bidirection Mapping in hibernate spring
by ZsA in Programming Languages

I am getting a bit confused with uni-direction mapping and bir-direction mapping.

Suppose i have

class Organisation

That has many to many association with country.

So a country can have many organisations and organisation can belong to many countries

Now this should be uni-direction or bidirection

Nhibernate mapping generator create mapping files without Schema()
by alphamars in Programming Languages

I use this generator - http://nmg.codeplex.com/. But it generates mapping files without schema. I have to go through all mapping files and manually insert Schema("someschema") method. How can I generate entities and mapping files with schema? Maybe another generator? Thanks in advance.

Hibernate Mapping Exception : Repeated column in mapping for entity
by eferro in Programming Languages

There is a mapping exception for a particular entity.
Cant figure out from where the problem is arising.
I checked all the mappings 3 times from start to end.
Still i am getting a Mapping Exception.

Email to employee is mapped only once.
but still it is reporting the error repeated mapping

Error is:

Caused by: org.hibernate.MappingExce

Knockout mapping plugin not mapping array inside model
by br4dz in Web Design

I'm trying to map some data (returned from a jQuery $.ajax call) to a view model, but for some reason the nested array is not mapped.

<p>Name: <input data-bind="value: Name" /></p>
<p>Age: <input data-bind="value: Age" /></p>
<p>Friends: <span data-bind="text: Friends.length"></span></p>

Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .