Dynamic mapping in hibernate
Hi...
I want to do the hibernate mapping for a dynamic component.Can any of you tell me how to
put that mapping. I know we can use the following.But no proper idea.
<dynamic-component name="ids">
<many-to-one class="class name " column="column-name "/>
</dynamic-component>>
Can any one give some guide lines/any tutorial/instructions to do this?
Thanks a lot.
Regards,
Menaka.
Hai Menaka,
this is ranga nice to meeting you. Probable for ur problum you may find out at this url
http://hibernate.org
Similar Messages
-
FDS and Hibernate dynamic mapping
I am using FDS with hibernate
(flex.data.assemblers.HibernateAssembler) to transfer data between
the flex client and my JDBC database. This works really smooth, as
long as I specify a server-side java class (POJO) in the
<hibernate-mapping><class name="some.class"> attribute.
As I dont really need these server-side java classes for
anything else, I have tried to save some work by using the
hibernate "dynamic-map" mode (<hibernate-mapping><class
entity-name="some.entity">). But in this case, FDS does not map
the result to the corresponding flex ActionScript class with the
correct RemoteClass alias. The DataService "fill" method returns an
ArrayCollection of "ManagedObjectProxy" items containing the field
"$type$=some.entity" instead.
Does FDS support hibernate dynamic mapping? Is there a
workaround for this problem?
Best,
PerHi Per,
The Hibernate assembler doesn't currently support the
dynamic-map mode, so for now you'll need your POJOs.
Best,
Seth -
Dynamic mapping: I have no Class. I want to get database columns into a map
I want to practice dynamic mapping.
I don't know the class in development time. I know the attributes only on runtime. Then I create the table, and want to practice OR Mapping to get and set data in this table while all I have is aa map of fields (Strings/int for direct-to-field mappings, Lists, Objects, etc.) - against this new table.
I have no Class. Neither source nor Class object in hand.
In Hibernate it is possible and very well documented. It's called "Dynamic Model". I have to get a special Hib session from a session i already have, and it starts to work with Maps and not real classes and objects.
Here is the command in Hib: sess.getSession(EntityMode.MAP);
Thanks in advance.
DoronDoron,
We have been working with dynamic models and byte code weaving for a while now. I took some work I did a few months back now and upgraded it to work with EclipseLink JPA. I have started creating an example within EclipseLink to both illustrate how EclipseLink can be extended to deliver this dynamic mapping and also to start consolidating our existing dynamic support in our SDO and DBWS components into a more general solution that be used out of the box with JPA.
I have started a wiki page to illustrate how this functionality can be used. Take a look and let me know if this might address your requirements.
http://wiki.eclipse.org/Eclipselink/Examples/JPA/Dynamic
Doug -
RE: Dynamically mapping data to widgets
One quick and dirty solution would be something like this (though not
terribly efficient):
newPanel : Panel;
newPanel = <panelCreatedFromWindowWorkshop>.Clone(deep = TRUE);for childWidget in newPanel.children do
-- check if the childWidget field name matches field name to be
set
if childWidget.name.isEqual(source=<..FieldNameToSet..>,
ignoreCase=TRUE) then
dataWidget : dataField = dataField(childWidget);
if dataWidget.textvalue = NIL then
dataWidget.textvalue = new;
end if;
-- set the textvalue of the childWidget to required
value
dataWidget.textvalue.setvalue('WORKS !');
end if;
end for;
Your problem would have been directly solved if the Forte library class
CompoundField provided a SetDataObject( ) method corresponding to the
GetDataObject( ) method.
According to Forte Help - "The GetDataObject method returns the object
that the compound field is mapped to. If the compound field is not
mapped to an object, this method returns NIL."
Maybe Forte could consider providing this in a future release.
Another option would have been to use the GetFieldByName( ) method on
the newly created panel to get at the child widgets directly.
According to Forte help - "GetFieldByName is designed for use in dynamic
applications. For example, you can use GetFieldByName to retrieve the
names of dynamically created fields for immediate use in dynamic
applications."
This works fine for compile-time named widgets, but I couldn't get it to
work for the newPanel child widgets using the code below, or maybe I am
missing something here.
newPanel : Panel;
newPanel = <panelCreatedFromWindowWorkshop>.Clone(deep = TRUE);newPanel.name.setvalue('newPanel');
newPanel.parent = <aGridField>;
dataWidget : dataField = dataField(newPanel.getFieldByName('age'));
(OR)
dataWidget : dataField =
dataField(<aGridField>.getFieldByName('newPanel.age'));
(OR)
dataWidget : dataField =
dataField(self.window.getFieldByName('newPanel.age'));
In all cases the return value was NIL.
Maybe someone from Forte could shed more light on this.
Hope this helps.
Prashant.
From: Richard Finegan[SMTP:[email protected]]
Reply To: Richard Finegan
Sent: Thursday, August 13, 1998 2:27 PM
To: 'Forte Users Mailing List'
Subject: Dynamically mapping data to widgets
Here's what I'm trying to do:
I have a panel with a bunch of data fields that I've mapped to an
object.
I want to replicate the panel several times to programmatically
populate a
TabFolder (although the TabFolder bit isn't really relevant here, I
think).
But I can't figure out how to get at the mapped data in the replicas
of my
object...
newPanel : Panel;
newPanel = <panelCreatedFromWindowWorkshop>.Clone(deep = TRUE);
panelCreatedFromWindowWorkshop.anAttributeOfObjMappedToPanel =
something;
// tada! "something" appears in a data field of the original panel
newPanel.? = something; // how to do the same thing with the new
panel?
How do I map an object to the replicated panel? I've experimented
with
assigning "Widget.AppData" to a new object, but I can't seem to get it
to
do anything...
Thanks in advance for your help.
Richard Finegan
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>Hi Michael,
did you find any solution?
I've the same problem. -
Hi All,
I need to display three tables using alv.
i have used one alv component in my application.
In my context i have three nodes ( for three tables )
when i am trying to map one node of my component control to 'DATA' of alv component
its working fine. i am getting the data of one table .
Now , my problem is for the remainig two tables . how these two nodes are mapped for the same alv 'DATA' attribute of alv component.
Whether i need to create two more alv components or Is there any possible to dynamic mapping ?
Thanks and Regards,
sravan.Hi Sravan,
Now , my problem is for the remainig two tables . how these two nodes are mapped for the same alv 'DATA' attribute of alv component
You cann't map the multiple context nodes to the DATA node of interface controller.You have to declare 3 component usages.
or
you want to set the map the dynamically then use this code.
data:l_ref_interfacecontroller type ref to iwci_salv_wd_table.
l_ref_interfacecontroller = wd_this->wd_cpifc_alv( ).
l_ref_interfacecontroller->set_data( lo_node ). -
Hi,
how to make dynamic mapping?
Is it possible to make mapping at runtime?
Thanks a lot.
Regards,
Jorge LuizHello,
Please see these:
[Dynamic Context Creation, Mapping, and Data Binding|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6fdae690-0201-0010-a580-d104b459cb44]
[Web Dynpro ABAP: Dynamic Context Creation, Mapping, and Data Binding|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/201ddd3b-b4ce-2b10-8883-880ae8147f89]
Regards -
How to give dynamically mapping in interface
Hi all,
I have requirement for this requirement i am thinking various scenarios,
could please tell me is there any way to we can give source,target data stores and mapping dynamically(execution time) to the interfaces ? if it is possible then i can re use job again and again ?
please give your solutions for this post
Thanks,
Surya.Please let me know if I miss the mark here.
If you are trying to build the 150 interfaces without spending the time to do so manually, use the ODI SDK. Check out David Allan's blog post for examples here https://blogs.oracle.com/warehousebuilder/entry/odi_11g_interface_builder. You can build your interfaces once - without need for dynamic mapping at execution time.
I'm pretty sure there is no good way in ODI "out of the box" to dynamically map columns at execution time, but I imagine you could use the ODI SDK to write a Java program that does so. Then, use the Open Tools feature in ODI to run the Java program within your ODI processes. I'm not sure the value of this, but I do not have a full understanding of your requirement.
I hope this helps. Enjoy!
Michael R. -
About how to build dynamic maps using jdeveloper 10g and mapviewer
i follow the guidance (about how to build dynamic maps using jdeveloper 10g and oracle application server mapviewer) to write a jsp file,but error take palce ,i get information "Project: D:\jdev1012\jdev\mywork\WebMap\ViewController\ViewController.jpr
D:\jdev1012\jdev\mywork\WebMap\ViewController\public_html\WebMap.jsp
Error(12,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerInitTag; file oracle\lbs\mapclient\taglib\MapViewerInitTag.class not found
Error(12,190): cannot access class oracle.lbs.mapclient.taglib.MapViewerInitTag; file oracle\lbs\mapclient\taglib\MapViewerInitTag.class not found
Error(12,102): cannot access class oracle.lbs.mapclient.taglib.MapViewerInitTag; file oracle\lbs\mapclient\taglib\MapViewerInitTag.class not found
Error(12,28): cannot access class oracle.lbs.mapclient.MapViewer; file oracle\lbs\mapclient\MapViewer.class not found
Error(12,40): cannot access class oracle.lbs.mapclient.MapViewer; file oracle\lbs\mapclient\MapViewer.class not found
Error(13,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerSetParamTag; file oracle\lbs\mapclient\taglib\MapViewerSetParamTag.class not found
Error(13,198): cannot access class oracle.lbs.mapclient.taglib.MapViewerSetParamTag; file oracle\lbs\mapclient\taglib\MapViewerSetParamTag.class not found
Error(13,106): cannot access class oracle.lbs.mapclient.taglib.MapViewerSetParamTag; file oracle\lbs\mapclient\taglib\MapViewerSetParamTag.class not found
Error(14,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerRunTag; file oracle\lbs\mapclient\taglib\MapViewerRunTag.class not found
Error(14,188): cannot access class oracle.lbs.mapclient.taglib.MapViewerRunTag; file oracle\lbs\mapclient\taglib\MapViewerRunTag.class not found
Error(14,101): cannot access class oracle.lbs.mapclient.taglib.MapViewerRunTag; file oracle\lbs\mapclient\taglib\MapViewerRunTag.class not found
Error(15,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerGetMapURLTag; file oracle\lbs\mapclient\taglib\MapViewerGetMapURLTag.class not found
Error(15,200): cannot access class oracle.lbs.mapclient.taglib.MapViewerGetMapURLTag; file oracle\lbs\mapclient\taglib\MapViewerGetMapURLTag.class not found
Error(15,107): cannot access class oracle.lbs.mapclient.taglib.MapViewerGetMapURLTag; file oracle\lbs\mapclient\taglib\MapViewerGetMapURLTag.class not found"
can you help?
greetingsI found a lot of information in document 133682.1 on metalink.
step by step example how to deploy a JSP business component application. -
Hi;
I search a source code (C# or JS) to show the dynamic France MAP wiht a view which displays the name when a user selects with the mouse the country ?
Web part or WSP or any package.
Regards,Hi,
Per my understanding, you might want to display a dynamic map in a web part.
A suggestion is that you can use the gmaps.js plugin which “allows you to use the potential of Google Maps in a simple way”:
https://hpneo.github.io/gmaps/
Thanks
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Ipsec Stateful Failover issue with Dynamic-Map
Hi all, I have an issue with a couple of Cisco ISR 2921 in Ha Ipsec Stateful Failover configuration.
With static crypto-map, stateful works good, Ipsec sessions are correctly trasmitted from Cisco Active router to Cisco Standby router.
With dynamic-map and profile, stateful fails, Ipsec sessions are not correctly trasmitted from Cisco Active router to Cisco Standby router.
I tried different IOS version:152-1.T3, 152-3.T2 and 153-1.T but I have the same behavior.
Could you help me?
MarcoYes it is supported. It is supprted on VAM, VMA2, VAM2+.
-
Hi,
I've been tasked with cleaning up a 5510 running 8.2(4) that has been migrated from a PIX a long time ago. In looking over the config, I'm not sure how these dyn maps are used. How does these work and how can I tell if they are actually are being used? Thanks.
access-list outside_cryptomap_dyn_20 extended permit ip any 10.x.9.0 255.255.255.128 access-list outside_cryptomap_dyn_80 extended permit ip any 10.x.11.0 255.255.255.252 access-list outside_cryptomap_dyn_100 extended permit ip any host 10.x.11.2 access-list outside_cryptomap_dyn_180 extended permit ip any host 10.x.11.22 access-list outside_cryptomap_dyn_200 extended permit ip any 10.x.12.0 255.255.255.0 access-list outside_cryptomap_dyn_160 extended permit ip any host 10.x.11.21 access-list outside_cryptomap_dyn_220 extended permit ip any host 10.x.11.23 access-list outside_cryptomap_dyn_240 extended permit ip any host 10.x.11.24 access-list outside_cryptomap_dyn_260 extended permit ip any host 10.x.11.25 access-list outside_cryptomap_dyn_320 extended permit ip any host 10.x.11.26 access-list outside_cryptomap_dyn_340 extended permit ip any host 10.x.11.27 access-list outside_cryptomap_dyn_360 extended permit ip any host 10.x.11.28 access-list outside_cryptomap_dyn_380 extended permit ip any host 10.x.11.29 access-list outside_cryptomap_dyn_400 extended permit ip any 10.x.9.0 255.255.255.128 access-list outside_cryptomap_dyn_420 extended permit ip any host 10.x.11.24 access-list outside_cryptomap_dyn_500 extended permit ip any host 10.x.11.34 access-list outside_cryptomap_dyn_520 extended permit ip any host 10.x.11.29 crypto dynamic-map outside_dyn_map 20 match address outside_cryptomap_dyn_20crypto dynamic-map outside_dyn_map 20 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 20 set security-association lifetime seconds 14400crypto dynamic-map outside_dyn_map 40 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 60 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 80 match address outside_cryptomap_dyn_80crypto dynamic-map outside_dyn_map 80 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 100 match address outside_cryptomap_dyn_100crypto dynamic-map outside_dyn_map 100 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 120 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 140 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 160 match address outside_cryptomap_dyn_160crypto dynamic-map outside_dyn_map 160 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 180 match address outside_cryptomap_dyn_180crypto dynamic-map outside_dyn_map 180 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 200 match address outside_cryptomap_dyn_200crypto dynamic-map outside_dyn_map 200 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 220 match address outside_cryptomap_dyn_220crypto dynamic-map outside_dyn_map 220 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 240 match address outside_cryptomap_dyn_240crypto dynamic-map outside_dyn_map 240 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 260 match address outside_cryptomap_dyn_260crypto dynamic-map outside_dyn_map 260 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 280 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 300 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 320 match address outside_cryptomap_dyn_320crypto dynamic-map outside_dyn_map 320 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 340 match address outside_cryptomap_dyn_340crypto dynamic-map outside_dyn_map 340 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 360 match address outside_cryptomap_dyn_360crypto dynamic-map outside_dyn_map 360 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 380 match address outside_cryptomap_dyn_380crypto dynamic-map outside_dyn_map 380 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 400 match address outside_cryptomap_dyn_400crypto dynamic-map outside_dyn_map 400 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 420 match address outside_cryptomap_dyn_420crypto dynamic-map outside_dyn_map 420 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 440 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 460 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 480 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 500 match address outside_cryptomap_dyn_500crypto dynamic-map outside_dyn_map 500 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 520 match address outside_cryptomap_dyn_520crypto dynamic-map outside_dyn_map 520 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 540 set transform-set ESP-3DES-SHAcrypto map outside_map 65535 ipsec-isakmp dynamic outside_dyn_mapHi Icaruso,
Dynamic Maps are used for remote access vpn connections from outside to your protected network. If you don't have any remote access user then you can unhesistatingly delete all the dynamic maps and corresponding crypto acl. The crypto acl in case of dynamic map don't make much sense as the default is "whole network access to remote vpn client" unless split-acl or vpn filter is defined. In any case I doubt if so many dynamic maps are being used in your network because in normal case it is only one. Here is a link which you can refer for remote access client configuration
http://www.cisco.com/en/US/partner/products/ps6120/products_configuration_example09186a00807f9a89.shtml#newra
Regards,
Rohan -
Hi,
I'm developing an occasionally connected application for handheld devices using NetWeaver Mobile 7.1.
Here I need to load dynamic maps like Google Maps or Microsoft Live Maps within my application itself. Suggest me the solution to resolve the above issue.
Thanks in advance.
Regards,
DVR.Hi Vinodh,
There is no webbrowser kind of control provided with SAP NWMobile Client.
To acheive this scenario what I suggest is developing a custom control which could be used to browse and open external web links.
Client framework provides support for hosting customer custom controls inside the application. You can develop a eSWT based control and host it inside the application.
Also you can use any third party applications/browser to achieve this and call it from the application using core java functionality on How to call external applications in normal java code.
On writing a custom control please see to some of these blogs:
/people/mike.brosseau/blog/2008/10/09/mobile-71-intro-to-custom-eswt-controls
https://www.sdn.sap.com/irj/scn/wiki?path=/display/community/using%2bsignature%2bcapture%2beswt%2bcontrol%2bin%2bmobile%2bwebdynpro
Regards,
Nipun -
Hibernate creating Dynamic Mapping File
Hi All,
I am supposed to create the Mapping Hbm file dynamically at run time. I learnt that this can be acheived from a Java class file using Xdoclets. But in my case i have to do it from a Xml File. Can this done by xdoclets or anything else?
Parsing the xml file and creating the Mapping file would be a good Idea. Is there is any way?
Thanks
AskiSee the First Xml File will have the Requirement Data, It will be on a bunch and it may reside on some other schema. And the Second Xml will be our Mapping Xml File which should be reside on Hibernate standards.
So which will be the best way to transform from one file(xml) to other Xml File(Mapping.xml).
Thanks -
How to create a dynamic mapping of columnar at the Runtime using ADF or JSF
How to create a dynamic GUI at the Runtime using ADF or JSF in JDeveloper 11g.
What I am trying to build is to allow the user to map one column to another at the run time.
Say the column A has rows 1 to 10, and column B has rows 1 to 15.
1. Allow the user to map rows of the two tables
2. An dhte rows of the two columns are dynamically generated at the run time.
Any help wil be appreciated.....
ThnaksOracle supports feedback form metalink was; "What you exactly want to approach is not possible in Htmldb"
I can guess that it is not
exactly possible since I looked at the forums and documantation etc. but
couldnt find anything similar than this link; "http://www.oracle.com/technology/products/database/htmldb/howtos/tabular_form.h
t". But this is a very common need and I thought that there must be at least a workaround?
How can I talk or write to Html Db development team about this since any ideas, this is very important item in a critial project?
I will be able to satisfy the need in a functional way if I could make the
select lists in the tabular form dynamic with the noz_id;
SELECT vozellik "Ãzellik",
htmldb_item.select_list_from_query(2, t2.nozellik_deger, 'select vdeger
a,vdeger b from tozellik_deger where noz_id = 10') "Select List",
htmldb_item.text(3, NULL, t2.vcihaz_oz_deger) "Free Text"
FROM vcihaz_grup_ozellik t1, tcihaz_oz t2
WHERE t1.noz_id = t2.noz_id
AND t2.ncihaz_id = 191
AND t1.ngrup_id = 5
But what I exactly need i something like this dynamic query;
SELECT
vozellik "Ãzellik",
CASE
WHEN (t2.nozellik_deger IS NULL AND t2.vcihaz_oz_deger IS NOT NULL) THEN
'HTMLDB_ITEM.freetext(' || rownum || ', NULL) ' || vozellik
WHEN (t2.nozellik_deger IS NOT NULL AND t2.vcihaz_oz_deger IS NULL) THEN
'HTMLDB_ITEM.select_list_from_query(' || rownum ||
', NULL, ''select vdeger a,vdeger b from tozellik_deger where noz_id = ' ||
t1.noz_id || ''' ) ' || vozellik
END AS "DeÄer"
FROM vcihaz_grup_ozellik t1, tcihaz_oz t2
WHERE t1.noz_id = t2.noz_id
AND t2.ncihaz_id = 191
AND t1.ngrup_id = 5
Thank you very much,
Best regards.
H.Tonguc -
Hi, I have the folowing situation: I have to transforme a material code from a non-sap system into a material code of a sap system. The relation betwean the codes are dynamic.
How can I do this en XI ? The translation tool in XI, let me do transformation only in a static way.Cesar,
After converting / translating material are you trying to post the data in SAP R/3 system using BAPI's or Idoc?
In that case RFC lookup is not good idea..this will have performance issue. I'll suggest check out for UserExit. If you can find exit before posting data you can write your code to map non sap material number for sap material number...If it is posting of Material Master you wll find number of user exits for this.
Let me know if you need more details.
Nilesh
Maybe you are looking for
-
I like having my Documents folder on the Dock so I added the Documents folder from the Finder to the Dock. When I save a document to the Documents folder, the saved document appears in the Documents folder from the Finder and not in the Documents fo
-
User appearing twice in Buy on Behalf
Hello, I have a bug on a user that was recently moved from a purchase org to another. When I try to buy on behalf of the user I see two lines of the same users ( same id ). It seems like a new line of this user has been created in the system. I've al
-
I realised an anomaly which occurred in the system whereby we still have abandoned calls even when the phone is not ringing. Most of them are coming from general line e.g 1234. Could it be because it takes too long for the call from general line 1234
-
Hi I've always used Lightroom and am really looking hard at Aperture. Not convinced just yet though. I have been trying to import my current file and folder structure (around half a million photographs) for use in Aperture 3 but can't seem to figure
-
how do i know if i have the latest verison, cause when i bought my imac on ebay it came with the airport card..any help apperciated. thanks