13 Unanswered Topics

Remove Filter
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 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 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 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 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 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 _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

[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
138

The End.