Questions asked by joha0123https://answers.axonivy.com/questions/asked-by/613/joha0123/?type=rssQuestions asked by <a href="/users/613/joha0123" >joha0123</a>enThu, 26 May 2016 16:59:17 -0400How can i persist a file as BLOB?https://answers.axonivy.com/questions/1779/how-can-i-persist-a-file-as-blob<p>Hi,</p> <p>i am using the primefaces fileupload widget, so users can upload attatchment files. right now, i save the files on the filesystem and i persist the path to the file in the database.</p> <p>is there a way to save files as BLOB in relational database?</p> <p>Thank you for your answers!</p>joha0123Thu, 26 May 2016 16:59:17 -0400https://answers.axonivy.com/questions/1779/how-can-i-persist-a-file-as-blobjpafileivypersistenceAvoid MultipleBagFetchException when referencing multiple collections of another typehttps://answers.axonivy.com/questions/1745/avoid-multiplebagfetchexception-when-referencing-multiple-collections-of-another-type<p>I know how to store a single list in a JPA class. but now everytime i try to add another list to any other entity class i get an ivy:error:persistence, with following error message:</p> <pre><code>IvyScriptRuntimeException: IvyScript Runtime Exception in Instruction: ivy.persistence.axsosUnit.findAll(teamprojekt.Job.class) Block: teamprojekt.showDashboard.showDashboardData out; out = in; in.data.closedJobs = ivy.persistence.axsosUnit.findAll(teamprojekt.Job.class); IvyScriptMethodInvocationException: Error calling method findAll(java.lang.Class) on an object of class ch.ivyteam.ivy.process.data.persistence.internal.IvyEntityManager. PersistenceUnitException: Failed to excecute operation "findAll" for persistence unit "axsosUnit". PersistenceUnitException: Could not create EntityManagerFactory of persistence unit'axsosUnit' PersistenceException: [PersistenceUnit: axsosUnit] Unable to build EntityManagerFactory MultipleBagFetchException: cannot simultaneously fetch multiple bags </code></pre> <p>I have read, that you cant use two lists in the same entity class, but i use them in different entity classes. maybe because they are nested?</p> <p>the structure is: institutionList is inside education which is inside application which has the other list.</p> <p>I have also read, the solution is to use a set instead of a list. can you explain how to do this? I've tried to change the list to a set from the entity class wizzard, but without success.</p> <p>can you show me how to do this?</p> <p>thank you very much</p>joha0123Fri, 22 Apr 2016 22:04:56 -0400https://answers.axonivy.com/questions/1745/avoid-multiplebagfetchexception-when-referencing-multiple-collections-of-another-typejpadataclasspersistenceHow can I add a List to a databasehttps://answers.axonivy.com/questions/1740/how-can-i-add-a-list-to-a-database<p>I am filling a List and then I try to write it to the database. We have two Entity Classes: Application and Education. The relationship is 1:N. (One application can have many educations)</p> <p>In the Application entity class I have created a List of Education with the relationship ONE_TO_MANY. Mapped by attribute is <strong>appl</strong>. In the Education entity class i have created a field <strong>appl</strong> with the relationship MANY_TO_ONE.</p> <p>The Problem is, that i have to initialize all objects before i can write data into them. this is impossible to do, because the application Object has a Education object in it and the Education Object has a Application object in it.</p> <p>Is there an other way to save my data to a database?</p> <p>thanks.</p>joha0123Wed, 20 Apr 2016 16:25:00 -0400https://answers.axonivy.com/questions/1740/how-can-i-add-a-list-to-a-databasejpadataclassivypersistencehow can i process the url GET parametershttps://answers.axonivy.com/questions/1727/how-can-i-process-the-url-get-parameters<p>hello,</p> <p>i want to pass some parameters in the URL via GET method to my application. for example: </p> <p><a href="http://domain.xy/ivy/pro/designer/project/15399C0297AC05B0/start.ivp?">http://domain.xy/ivy/pro/designer/project/15399C0297AC05B0/start.ivp?</a><strong>jobId=123211</strong></p> <p>how can i access them in axon ivy? (jobId in my example). what i've found so far is:</p> <pre><code>Map&lt;String, String&gt; params = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap(); String jobId = params.get("jobId"); </code></pre> <p>but how can i use it in axon ivy?</p> <p>thank you for your answers.</p>joha0123Mon, 11 Apr 2016 15:23:58 -0400https://answers.axonivy.com/questions/1727/how-can-i-process-the-url-get-parametersjsfhtmlwebpagescontextBest way to jump between user dialogshttps://answers.axonivy.com/questions/1720/best-way-to-jump-between-user-dialogs<p>what is the best way to jump between user dialogs?</p> <p>i want to have a main page with a menu. a click on the menu buttons should open a user dialog. from the user dialog you should also be able to jump to a different user dialog. At the end i want to show a page with all the entered values.</p> <p>i have tried to use ivy.html.startref, but every time i jump to a different user dialog, but with this method i cant show all the entered values at the end.</p> <p>Thank you for your answers</p>joha0123Thu, 07 Apr 2016 19:42:02 -0400https://answers.axonivy.com/questions/1720/best-way-to-jump-between-user-dialogshtmluserdialog