is it possible to either

  1. specify the delimeter for column names of Structure properties (do not use the default dot: ".") or
  2. map properties of Structure properties to specific column names?

Example: We have an Entity named Order, which has a field Setpoint of structure type Weight:

class Weight : Structure
   public double Value { get; set; }
   public string Unit { get; set; }

class Order: Entity
   public Weight Setpoint { get; set; }

The Order entity is mapped to table Order with columns Setpoint.Value and Setpoint.Unit. We are exchanging data via this table with our customer (Import/Export). Unfortunately, the JDBC driver of our customer does not support column names with a dot. There is no option to put them in square brackets. Therefore, I want to rename the Setpoint.Value and Setpoint.Unit columns to Setpoint_Value and Setpoint_Unit.

asked Dec 04 '18 at 08:11

Hauke%20Wittern's gravatar image

Hauke Wittern

One Answer:

Hello Hauke Wittern

DomainConfiguration.NamingConvention property gives you access to the settings of naming. I think this is what you want.

answered Dec 04 '18 at 10:43

Alexey%20Kulakov's gravatar image

Alexey Kulakov

Thanks! That was the information that I needed.

(Dec 05 '18 at 06:42) Hauke Wittern Hauke%20Wittern's gravatar image
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview


Once you sign in you will be able to subscribe for any updates here



Asked: Dec 04 '18 at 08:11

Seen: 3,565 times

Last updated: Dec 05 '18 at 06:42

Related questions

powered by OSQA