Model with Collections
How can I use the Framework (version 2.0) to model objects that contain collections of other objects? For example, I have a User object which has a collection of Role objects. Both these objects are persisted on an Oracle database.
Are your User and Role objects models as Java Beans? That is are the Roles objects Beans and the User Bean has an indexed property of Roles?
If this is the case you may be able to use BeanAdapterModel.
Technically ou could use the ObjectAdapterModel in this case but the OAM has a few discrepancies in 2.0.0 which are fixed in a new version soon to be released for Studio 5.
Would you please describe the scenario of who you would use this model....is it ready only? Do you need it to work like a QueryModel pattern?
Similar Messages
-
I am trying to use an external 3g modem made by Huawei model e173s-6 and when I do connect it on my usb port the macbook pro just do not recognize it. I own a 2012 model with mountain lion 10.8.2 . What should I do ?
I still don't know what happened to my test Aperture Library after the update to 3.4...Not only were my previews lost, but so were the original images! Needless to say, I haven't bothered to update the main library on the Mac Pro because I don't want to deal with this level of uncertainty (even with backups in place).
-
How can I copy a Font Book library with "Collections" to my 2nd laptop?
How can I copy a Font Book library with "Collections" to my 2nd laptop?
I have a number of fonts (approx. 500) on my work laptop which are sorted to different Collections. I'd like to have a copy of the Font Book library with Collections on the laptop I use at home to work. I'd think there was a more straight forward way to do it, but I haven't found any posts regarding the matter so any help would be appreciated.
ThanksTo anyone who is reading this based on needing to copy their Font Book to another machine as I do, there is a way to make a copy of the fonts in Font Book by going to file/export fonts. Keep in mind that you will need to have all the fonts selected (command A) in your "All Fonts" list for them to be exported. You will then have a new folder saved to where ever you chose, with all your Font Book fonts in it.
-
Java Script Error while deploying a Model with Value Help
Hi,
I am using EP 7.0 SP 10.
I am trying to deploy a model which includes the Value Help for an Input field, and i am trying to deploy this model.
The model compiles successfully, but gives a Java Script Error while deploying the model,
! Error on Page
When Click on this java script error, it shows that ,
Line:14985
Char 1: Error
object does n't support this property or method.
code
URL: <serverhost>/VCRes/WebContent/VisualComposer6.0/bin/223334.htm?24102006.1712.
The Same model works in dev server, and it fails in the production server.
Thanks and Regards,
SekarHi jakob,
Thankyou for your quick response.
I did a basic model with the help of a documentation which i got from this forums.I created a iView and from there i used Bapi "BAPI_SALESORDER ".
I created a Input Form and a outpot form (table view).I tested model and am able to get the output.but when i try to deploy it is giving me the error.
And i think am not paring any formulas here.
Please guide me.
thanks and regrads
Pradeep.B -
EJB 3.0: How to merge detached entity with collection
Hello,
suppose you have 2 database tables: PARENT and CHILD with one-to-many association. In a session bean you load the parent entity together with collection of children and send it all to client. Client might change parent or child data, add/remove children.
Now back in a session bean you want to update database, so you call:
entityManager.merge(detached_parent_entity);Problem is, that removed child objects from entity bean collection are not deleted from database. Bacause I am currently using Hibernate, I could follow the FAQ (http://www.hibernate.org/116.html#A17) and add delete-orphan cascade, but I don't want to be tight to Hibernate nor other frameworks.
Is there any sexy solution?
Thanks for replies!I'm afarid not - a generic feature that will allow to
delete orphan children didn't make it into the final
spec.
regards,
-marinaDo you happen to have any links to public discussions about this feature with regard to the development of the spec? This is a very nice feature in Hibernate and it's absence in EJB 3.0 is rather disappointing.
Thanks. -
Error while binding the model with the custom controller
Hi All,
I first started with a dummy project and in that binded the model with the custom controller.
For some reason, I deleted the project and created a new one. I have deleted the whole project from the workspace.
Now, when I am trying to bind the model again , I am getting an error when selecting the response parameters saying that DUPICATE ENTRIES.Ideally it should not happen when I am deleting it completely.
I am using a Webservice Model. Can any one help me out to resolve the same.
Looking forward for your response.
Regards
DipendraHi Raman,
I did that and even I have Installed the IDE again.
Still I have that error.
Regards
Dipendra -
Hello Everyone,
I have a MacBook older model with me.I am running 10.7.6 on that, I was trying to use BootCamp to install windows on my mac. Since BootCamp can only work on a single Volume, I partitioned my Hard Disk to one volume.
Using BootCamp I installed windows and everything worked fine. After installing windows and testing everything, I switched back to OS X and this time I tried to make another partition on my single portioned Mac volume and named it Backup. That too worked. Now I have three Volumes
1)Development2)Backup3)BootCamp.
Next when I switched to Windows, It should the classic error, No Bootable device found, please insert a Bootable CD and press any key. When I tried to enter my Mac OS X install DVD and by pressing option key, it does not show me the proper Mac OS X development volume. It keeps going back to the No bootable device found message.
Any help will be much appreciated
Regards
Mithunyou can't add a partition in between - you put Windows to a new partition number.
GPT (GUID)
EFI
Mac HFS
Lion Recovery
Windows
And now you have two HFS
One partition and one Windows (plus Lion Recovery).
If you were to have more, it can't be before Windows for one thing. -
Problems Creating Mappings with Collections with tools or workbench
Hi -
I am a new kodo user for my company. And am having a few problems in genereal with mapping objects with collections
in them.
I followed the tutorial on how to use the kodo workbench
using the Passenger example. Build the java code and then
tried to creat a new set of metadata. After going through
this process I expected to see TWO tables. Something like
'PAssenger' and something like 'Luggage' where luggage
would be joined to passenger. However what I am getting
is ONE table passenger with a BLOB field 'Luggage'. This
has been a contant problem with me with any composite
java class containing collection. Obviously I am configuring something wrong. Any help would be great.
Thanks
MattAnswered by one of my fellow and unknown colleagues that suddenly entered the room
-
Hi All,
I tried to generate org.model with CRM_R3_ORG_GENERATE.
But it ran for a long time. For a day and still not finished.
I killed it and did again. Same situation happen.
I see process is running and use almost CPU time.
Is this normal for this transaction? Can we tune it up?
Note that our R/3 sale structure is quite large. The system is used by global.
Thanks in advance for your advice
Pichet A.I test extract list in CRM_R3_ORG_GENERATE to text file.
It size is 87MB.
Can I generate in background? -
How to use Adaptive WebService Model with CAF WebService and Complex Type
Hi All,
I am trying to use the Adaptive Web Service Model and call a WebService generated by the CAF. The return type of the WebService is a Complex Type.. I receive an exception when trying to instantiate the Model Node.
Does anybody know how to use the Adpative Web Service Model with CAF WebServices and Complex Types as return type?
Help is appreciated..
Thanks, JohannesThanks Mukesh.
It is not possible to apply the Service Controller Template on Enterprise Java Bean Models as described in the Document. When I try to aply the template on the EJB Model, NWDS says: Only Webservice Models and RFC Models are supported...???
I did not find any information about how to return complex types in AWS.. in this document???
Is there such information available? Has anybody ever done that? There must be a way to do that.. Is is the standard approach, isn't it...? Please help me out there.. I need to get this running..
Thanks, Johannes -
Hi all,
i have a model with two fact tables, both of them containing these columns:
- some measures
- foreign keys for dimensional tables
- column year
- column month
I have to build a model with both of these two tables, including a unique time dimension. Do anyone knows how i can do to make a unique dimension for both of the tables?
Thanks in advance,
RegardsA time dimension (or date dimension for that matter) are quite independent and you can find N good generic time/date dim structures out there (with proper Y/M/DAGO keys, calendar vs fiscal rollups etc etc).
But if you only want to create a single common time/date dim based on what you have in your facts, you can just follow (as a quick win before thinking about how to structure a physical time/date dim) Stewarts basic example here:
http://www.rittmanmead.com/2012/12/obiee-transactional4/
"Building a Date Dimension" a bit further down the page. -
Advice/Recommendation please? How to best handle big models with various schemas?
Hi
Using DM 3.3.0.747.
We have several bespoke applications, each using its own data model in separate schemas. They do share various entities/tables which are made available in a shared schema. There are references to these shared tables, etc. (e.g. foreign keys)
We want to embark on a process to reverse engineer and then maintain these applications' schemas in Data Modeller.
I would really like your views on how to best approach this. The main concern is that the bigger the design (or more models/sub-views) the slower actions like saving and loading it becomes. Once you also have it version controlled more time is added onto saving and synchronising with the sub-version repository and between team members.
The thinking is to primarily have each application (and hence its own schema) in separate designs (projects), but include tables from the shared/core schema as needed. Would this be a good/recommended approach?
How does one address potential changes made (differences introduced) that may conflict between these separate designs?
e.g. in physical model the schema becomes a user that has permissions, etc. and that same user may be in multiple designs. Each design is version controlled, but in the end only exists once in the database. If each design is synch'ed with the database, DDL generated and executed, this can cause one design to add permissions, etc. that the second DDL from the second design removes or replaces with its own?
I hope my question/scenario is clear enough. If not, please revert to me for more clarification.
Thank you & RegardsHi Hans,
I think it's better to use DM 4.0 and have everything in one design.
1) You can import all schemas you need into one design (one relational model). Save that design - important to do it before using "remote objects" approach
2) Use "Create new models based on schema names" wizard available in context menu for relational model in browser. Wizard will create new relational model for each schema in originating model and create there tables and views that
belong to that schema. All objects in originating model become read-only "remote objects".
If table (in new model) has a foreign key that refer table in another schema (now that table is moved to another new model) then "remote object" presentation is created for referred table.
At the end you'll have one large model with read-only remote objects and set of relational models that keep the track of foreign keys between tables in different schemas in database.
You can keep the originating model (the large one) in order to have global picture or delete it.
Properties from physical model are also transferred to new models in DM 4.0.
3) Check "Show 'Select relational models' dialog" in "Preferences>Data Modeler" - upon "open design" that will bring up dialog allowing to select which model to be loaded. The choice is persisted and
applied next time you open design (no need to see that dialog again if no change in what to be loaded).
4) For each model you can create "DDL generation" configuration (one or more) and exclude remote object from generation in DDL. Permissions should be maintained in model where table is editable and where DDL for that table will be generated.
The thinking is to primarily have each application (and hence its own schema) in separate designs (projects), but include tables from the shared/core schema as needed.
I won't recommend it. I know it's possible to have remote object in another design but you'll face following problems:
1) You cannot use design level domains and definitions in data types model
2) Remote object from another design are sensible to location of that remote design. You need to maintain the same directory structure everywhere designs (all related) are checked out and they need all to be checked out before dependent design to be open
3) You need to add remote objects manually while wizard described above will do it for you in the scope of one design
The main concern is that the bigger the design (or more models/sub-views) the slower actions like saving and loading it becomes.
The number of models shouldn't be a problem with support of "Select relational models" dialog. Subviews will impact loading if only they are large and are visible when "save" is used.
Total number of objects in model doesn't impact "save' operation - only modified objects are saved.
Yes, there is overhead for versioned designs - one more reason to move to DM 4.0 - SVN client 1.7 is used there.
Philip -
Problems with collective search help
Hello SDNers,
I was working with collective search help.
Ex : zc_srch1 (Collective)
In the 'Include search help' i have included 2 search elementary search
help
Ex : zsrc1 and zsrc2 (both elementary)
I have also assigned the parameter assignment for each included search help.
I have also mentioned the search help parameter under definition tab
Ex field form zsrch1 and field1 from zsrch2
and also checked the import and export checkboxes.
Now i have used the search help in the abap program
ex: tmp type field1 matchcode object zc_srch1.
Now when i execute the program the collective search help is getting populated. when i try to choose a value it is not getting selected to the parameter box.
Regards,
Ranjith NHi,
Once again check back your seach help creation by following the link below.
http://help.sap.com/saphelp_erp2005/helpdata/en/cf/21ee86446011d189700000e8322d00/content.htm
Cheers!!
VEnk@ -
LOAD VILLA MODEL WITH TEXTURES
HI FOR ALL
FIRST I HAVE A PROBLEM IN MY GRADUATION PROJECT I WANT TO LOAD A 3D VILLA MODELS WITH TEXTURES
I LOADED MODELS BUT TEXTURES DID NOT APPEAR PLEASE CAN ANY ONE HELP ME
SECOND I WANT TO PUT THE JAVA 3D APPLET ON A WEBSITE HOW CAN I PUT THE J3D APPLET IN HTML DOC ??This is my appleT
{code */
public class OnAppletView extends Applet {
public BranchGroup createSceneGraph(SimpleUniverse su) throws MalformedURLException {
// String objUrl="";
// Connection conn=null;
// String UserName="root";
// String Password="password";
// String Url="jdbc:mysql://localhost/City";
// ResultSet rs=null;
// try
// Class.forName("com.mysql.jdbc.Driver").newInstance();
// conn=DriverManager.getConnection(Url,UserName,Password);
// System.out.println("Database connection established");
// Statement s=conn.createStatement();
// s.executeQuery("select url from resources where obj1='villa' ");
// rs=s.getResultSet();
// if(rs!=null)
// try
// while(rs.next())
// objUrl=rs.getString(1);
// System.out.println("objjjj"+objUrl);
// catch (Exception e) {
// // TODO: handle exception
// e.printStackTrace();
// s.close();
// conn.close();
// System.out.println("DB Connection terminated");
// catch (Exception e) {
// e.printStackTrace();
// Create the root of the branch graph
TransformGroup vpTrans = null;
BranchGroup objRoot = new BranchGroup();
ObjectFile f = new ObjectFile(ObjectFile.RESIZE | ObjectFile.TRIANGULATE | ObjectFile.STRIPIFY );
Scene s = null;
try {
// f.setBaseUrl( new URL("file:///"));
// s = f.load(new URL("file:///C:/Users/Mido/Desktop/ObjectLoader/villa1/villa1.obj"));
// f.setBaseUrl(new URL("file:///C:/Users/Mido/Desktop/OBJ-Models/Unterstand&Carport/"));
// s = f.load(new URL("file:///C:/Users/Mido/Desktop/OBJ-Models/house/casa1/casa1.obj"));
f.setBasePath("C:\\Users\\Mido\\Desktop\\NewVilla\\");
s = f.load("C:\\Users\\Mido\\Desktop\\NewVilla\\House02b.obj");
} catch (FileNotFoundException e) {
System.err.println(e);
System.exit(1);
} catch (ParsingErrorException e) {
System.err.println(e);
System.exit(1);
} catch (IncorrectFormatException e) {
System.err.println(e);
System.exit(1);
/// objRoot.addChild(s.getSceneGroup());
Vector3f translate = new Vector3f();
Transform3D T3D = new Transform3D();
TransformGroup TG = null;
SharedGroup share = new SharedGroup();
share.addChild(s.getSceneGroup());
float[][] position = {{0.0f, -0.1f, -3.0f},
{6.0f, -0.1f, 0.0f},
{6.0f, -0.1f, 6.0f},
{3.0f, -0.1f, -10.0f},
{13.0f, -0.1f, -30.0f},
{-13.0f, -0.1f, 30.0f},
{-13.0f, -0.1f, 23.0f},
{13.0f, -0.1f, 3.0f}};
for (int i = 0; i < position.length; i++) {
translate.set(position);
T3D.setTranslation(translate);
TG = new TransformGroup(T3D);
TG.addChild(new Link(share));
objRoot.addChild(TG);
vpTrans = su.getViewingPlatform().getViewPlatformTransform();
translate.set(0.0f, 0.3f, 0.0f);
T3D.setTranslation(translate);
vpTrans.setTransform(T3D);
KeyNavigatorBehavior keyNavBeh = new KeyNavigatorBehavior(vpTrans);
keyNavBeh.setSchedulingBounds(new BoundingSphere(new Point3d(), 1000.0));
objRoot.addChild(keyNavBeh);
objRoot.compile();
return objRoot;
} // end of CreateSceneGraph method of KeyNavigatorApp
public void init() {
// TODO start asynchronous download of heavy resources
setLayout(new BorderLayout());
GraphicsConfiguration config =
SimpleUniverse.getPreferredConfiguration();
Canvas3D canvas3D = new Canvas3D(config);
add("Center", canvas3D);
// SimpleUniverse is a Convenience Utility class
SimpleUniverse simpleU = new SimpleUniverse(canvas3D);
BranchGroup scene=null;
try {
scene = createSceneGraph(simpleU);
} catch (MalformedURLException ex) {
Logger.getLogger(OnAppletView.class.getName()).log(Level.SEVERE, null, ex);
// LIGHT
AmbientLight ambientLight = new AmbientLight(new Color3f(Color.black));
ambientLight.setInfluencingBounds(new BoundingSphere(new Point3d(), 100.0));
DirectionalLight directionalLight = new DirectionalLight(new Color3f(Color.WHITE), new Vector3f(0.0f, 0.0f, -1.0f));
directionalLight.setInfluencingBounds(new BoundingSphere(new Point3d(), 100.0));
BranchGroup lightingBG = new BranchGroup();
lightingBG.addChild(ambientLight);
lightingBG.addChild(directionalLight);
PlatformGeometry platformGeometry = new PlatformGeometry();
platformGeometry.addChild(lightingBG);
simpleU.getViewingPlatform().setPlatformGeometry(platformGeometry);
//END OF LIGHT
// This will move the ViewPlatform back a bit so the
// objects in the scene can be viewed.
simpleU.getViewingPlatform().setNominalViewingTransform();
// TO INTERACT WITH MOUSE
// OrbitBehavior orbitBehavior = new OrbitBehavior(canvas3D , OrbitBehavior.REVERSE_ALL);
// orbitBehavior.setBoundsAutoCompute(true);
// orbitBehavior.setSchedulingBounds(new BoundingSphere(new Point3d() , 100.0));
// simpleU.getViewingPlatform().setViewPlatformBehavior(orbitBehavior);
simpleU.addBranchGraph(scene);
// TODO overwrite start(), stop() and destroy() methods
i wanT To implemenT a collision detection to prevent the viewer to walk through the wall what can i do ? there is a class ?? -
Publish subscribe model with plsql
Hi,
I did not find any sample that shows how to use the publish subscribe model with plsql.
Enqueueing is possible and know how to do it, but how can I subscribe to a topic with plsql.
All samples I found are for Java JMS.
Thanks
GüntherHello,
I have assumed you are using 10.2
There are examples in
http://download.oracle.com/docs/cd/B19306_01/server.102/b14257/toc.htm
about using multi-consumer queues/topics. There are demos in $ORACLE_HOME/rdbms/demo if you have installed the companion cd.
Thanks
Peter
Maybe you are looking for
-
I am trying to install Adobe Creative Suite CS2 and I am at the last stage of installation but the pop up window is asking that I insert CD #2 but, of course, there is no cd! I tried clicking okay and double clicking the image for CD #2 or file #2 bu
-
Basics of FI Presentations, screenshots & documents related to FI config
Hi FI Gurus, I'm new in SAP. I want to know basics of FI. Can anyone send me Presentations, screenshots & documents related to FI config. to My id : [email protected] Appreciate your information and will definitely reward points. Mohammed
-
Hi all, I use netbean 5.5 (visual midlet) to develop my J2ME application. Very headache with my form's value that is not updating whenever i reopen the same form. Lets say I have FormA, FormB. First, I go to FormA. I enter my name "John" to save in r
-
Use of abstract and interface?
when i use Abstract class or Interface.Which one is better?
-
Cs4 internet explorer error. help please
I try to install cs4 premium. it scans my computer then displays "please exit : internet explorer to continue" Internet explorer is not running. i pulled up task manager to check, i also checked if any "behind the scene" programs of internet were run