27 Topics

Member Avatar for
Member Avatar for Violet_82

Hi all, I have an application which saves data (books details like book title, author and location) to a mySql db and performs CRUD operations. I thought I'd use hibernate to take care of the ORM side of things and everything was OK when it came to create a record, …

0
916
Member Avatar for samantha2015

Hello I have a rest web service which implement oauth2.0 . Now I have my web application with a login which currently using spring security. I want to use the same login to authenticate with the rest web service using oauth2. My question is: Does this tutorial is suitable for …

0
197
Member Avatar for sciwizeh

I have user login info stored with JPA along with a room. The room has a list of users, the users have a transient field, which is where my problem is coming in. @Entity public class User{ //some other stuff ids and such @Id @GeneratedValue(generator = "increment") @GenericGenerator(name = "increment", …

Member Avatar for sciwizeh
0
279
Member Avatar for Muni123

I am trying to add some text in to a page by using a textarea where text is entered the text gets saved in to a database after clicking on a add button on a page. However, I am unable to achieve this after trying. I have two tables matchreportcomments …

0
223
Member Avatar for dany12

I would like to know what means Java Web UI with html5 knowledge,flex,javascript,css? Do you have to use plain jsp jsf servlet and then use a MVC pattern? If so the views are made with html5 flex? If anyone knows more about this please explain it to me because I …

Member Avatar for stultuske
0
331
Member Avatar for murali2489

Hi Team, I am almost going to finish learning core Java and my employers said openings are available for Hibernate/Spring/Struts. I am just wondering whether can i directly start studying one of these frameworks after Core Java. Some people said these Frameworks contains JSP,servlets and important J2EE concepts so that …

Member Avatar for rubberman
0
262
Member Avatar for ronaldpaul

Hi, I would like to load the data from a SOAP response XML file to a MySQL table. Sample SOAP XML would be http://data.gov.in/sites/default/files/Ashgourd_2012.xml. I have to write a program to populate the data. I'm not very familiar with Java Web Services. I've worked with Struts2 and basics of Spring. …

Member Avatar for ronaldpaul
0
727
Member Avatar for sarthak25

how to configure oracle datasource in jboss 5.0 ?? and then how can I use this datasource in hibernate.cfg.xml file to make connection to the database ?

0
157
Member Avatar for boykaa

since three days I try to insert many record in DB , I m using struts 2 and hibernate 3.I have 3 tables: 1 Evaluationglobale (id_eval ,label) 2 SousEval(id_eval ,SousItem_ID), 3 SousItems(SousItem_ID,label) my issue is how to insert many record in table SousEval when using the last insert id_eval in …

0
143
Member Avatar for manalibhadula

Hi , I am new to hibernate and facing issues with composite key mapping.Please help,.While running class name Example,At line 36:- **List sites = session.createQuery("Select h from SiteStageDto h").list();** code is returning null pointer,the hql is returing right query but unable to fetch data to list. I am also posting …

Member Avatar for manalibhadula
0
336
Member Avatar for Markancia

I am a beginner in j2ee, I met a problem when retrieving an image already stored in the database. I am using Hibernate and JSP, the code I used is as follows: / / java code: s.setAttribute ("photo", l.getPhoto ()); StringTokenizer st = new StringTokenizer (s.getAttribute ("photo"). ToString (), "/"); …

Member Avatar for LastMitch
0
359
Member Avatar for faroukmuhammad

Hi guys, I want to enable hibernation on my desktop, only to find there is not HIBERNATE tab on the power option. Is there any other way of enabling hibernation?

Member Avatar for faroukmuhammad
0
230
Member Avatar for ToiNKieZ

As far as i know, for desktop, sleep transitions to hibernation(hybrid mode) so even if power is suddenly cut off. All running documents or processes are saved and will continue running when the desktop is turned back on. Now for Laptops. If the laptop is put to sleep and suddenly …

Member Avatar for ToiNKieZ
0
197
Member Avatar for mullangi13

Hi Friends, I am developing one application using Struts1.3+Spring2.5+Hibernate3.6 to do practice. In this application I am using Spring AOP transactions, but transaction is not working for me. Please check my code snippets and help me. web.xml ======= in addition to general entries, I have added the following code as …

0
145
Member Avatar for mic_

Hello! I am newbie in creating enteprise applications. I need some help. I managed to configure hibernate correctly. It is connecting directly to MySQL server - everything works well. I want to develop application for small company. I wanted to leave it like that, but I have read that application …

0
162
Member Avatar for Samaka

Hello, I'm doing a simple J2EE application that will interact with a database like Oracle and you know that a database can have multiple oracle schemas and that is the problem (because I do not know how to configure hibernat with multiple schemas :( because my application can handle multiple …

Member Avatar for Samaka
0
206
Member Avatar for saman.aghazadeh

I'm using Ehcache beside Hibernate. I need a cache manager in my project that could do these things below: 1- I wanted to refresh some caches 2- I wanted to remove some caches I will be happy if someone can help me and also guide me how to make a …

0
96
Member Avatar for pankajagar2002

Hi, In my application i want to get the explain plan of all the query executed and want to log that explain plan in log file. I am planning to use the hibernate or Ibatis. Could any body help me to tell that which one support to get the explain …

Member Avatar for dayoj
0
247
Member Avatar for LaLuz

Hi, I'm having a problem getting the auto generated ID immediately upon commit. I have an entityBean mapping like this: [CODE] @GeneratedValue(strategy=GenerationType.AUTO, generator="SEQ_SETTLEMENT_TRANS") @SequenceGenerator(sequenceName="SEQ_SETTLEMENT_TRANS", name="SEQ_SETTLEMENT_TRANS") @Id @Column(name="SET_TRANS_ID") private long setTransId; [/CODE] and I am trying to get the Id like this: [CODE]setEntityManager(PersistenceManager.getEntityManager()); getEntityManager().getTransaction().begin(); getEntityManager().persist(settlementTrans); getEntityManager().flush(); getEntityManager().getTransaction().commit(); System.out.println("ID :: "+settlementTrans.getSetTransId()); [/CODE] …

0
118
Member Avatar for petr.hribal

Hi Boys, I would like to ask you, how should I correctly implement entity life-cycle using hibernate filters. At this time I have got the following classes and DAOS, which I considered to be right - but they obviously aren't. Here are entities which are used in my system. [code] …

0
131
Member Avatar for mani_1991

I have a situation like this... I have four different tables namely btech_ece, btech_cse, btech_it, btech_eee all these tables have the same columns. Its just that the name differs and everything else is same. Their columns are:- Id Year Semister Section Period SubjectCode Date Status now i have four different …

Member Avatar for pbl
0
180
Member Avatar for asamd1st

Several weeks ago I installed Win 7 over Vista on a 64-bit HP desktop. Now after a routine reboot atempt machine acts as if it were dead except the green light on the back showing power on. What now? To make maters worse I had the same problem and found …

Member Avatar for Rik_
0
258
Member Avatar for _aGt_

hello,im new to hibernate and not so familiar to its query language yet. can anyone please help me to translate this mysql query to its hql counterpart. select TRANSACTION_RECORD.BOOK_TYPE,TRANSACTION_RECORD.ID, TRANSACTION_RECORD.RECORD_DATE, TRANSACTION_ACCOUNTS.ACCOUNT_NAME, TRANSACTION_ACCOUNTS.DEBIT_AMOUNT, TRANSACTION_ACCOUNTS.CREDIT_AMOUNT, TRANSACTION_ACCOUNTS.ACCOUNT_TYPE from TRANSACTION_ACCOUNTS inner join (TRANSACTION_RECORD inner join TRANSACTION_ENTRIES on TRANSACTION_RECORD.ID = TRANSACTION_ENTRIES.TRANS_ID) on TRANSACTION_ACCOUNTS.ID = TRANSACTION_ENTRIES.TRANSACOUNT_ID; …

0
124
Member Avatar for beckveg

Hello everyone I want to run a .jar file, but the only way to run in my computer is with the "java -jar file.jar ", but the problem is that the application conects to a mysqldatabase, when I want to add something in the program appear a message that say …

0
114
Member Avatar for elSifa

I´m sorry if I haven´t investigated enough but I´m not quite an expert in hibernate and I´m tired of looking for something that won´t really solve my specific problem. What I mean is that I am a bit short of time. I have a User class that represents every single …

Member Avatar for quuba
0
2K
Member Avatar for elSifa

[CODE] @ManyToMany (fetch=FetchType.LAZY) @JoinTable( name="confirmed_join_table", joinColumns={@JoinColumn(name="user_id")}, inverseJoinColumns={@JoinColumn(name="match_id")} ) @IndexColumn(name="position") private List<Match> confirmedMatches = null; @ManyToMany (fetch=FetchType.LAZY) @JoinTable ( name="candidates_join_table", joinColumns={@JoinColumn(name="user_id")}, inverseJoinColumns={@JoinColumn(name="match_id")} ) @IndexColumn(name="position") private List<Match> candidateMatches = null; [/CODE] This is what I have in one of the classes, the other class has the inverse association, but I don´t think …

0
139
Member Avatar for talha06

Hello to all, Despite I added all necessary .jar files to project, I always take boring exception warnings that say "class not found". I added the code and exception output below. I'll be so happy if someone can help me. Thanx in advance.. With regards, T ----------------------------------------------------- [CODE]protected void doGet(HttpServletRequest …

Member Avatar for talha06
0
3K

The End.