Search:

Type: Posts; User: pratikbhavsar; Keyword(s):

Page 1 of 3 1 2 3

Search: Search took 0.03 seconds.

  1. The following works: ClassConstructor.java ...

    The following works:

    ClassConstructor.java

    public class ClassConstructor {

    public ClassConstructor(Class clazz)
    {
    System.out.println(clazz.getCanonicalName());
    }
  2. Sounds like a library issue. Make sure you...

    Sounds like a library issue.

    Make sure you have hibernate-entitymanager and hibernate-annotations jars in your classpath.
  3. Please post definition of your DAOs in the...

    Please post definition of your DAOs in the application context xml.
  4. Replies
    3
    Views
    1,521

    Yes. Yes and Yes. :)

    Yes. Yes and Yes. :)
  5. Replies
    1
    Views
    1,076

    Please post your applicationContext.xml

    Please post your applicationContext.xml
  6. AuthorityVO is missing a primary key mapping....

    AuthorityVO is missing a primary key mapping. Something like:


    @Id
    @Column(name="user_authority_id",length=50,nullable=false)
    private int id;
  7. Use entityManager.getTransaction().begin() ...

    Use

    entityManager.getTransaction().begin()

    and

    entityManager.getTransaction().commit()

    to begin and end a JpaTransaction.
  8. What transaction manager are you using?

    What transaction manager are you using?
  9. Replies
    3
    Views
    1,521

    You would have to mark the property for Entity B...

    You would have to mark the property for Entity B as transitive or not-mapped. Then, write a custom DAO to read and store the Entity A in the first database and Entity B in the the second database in...
  10. Change @TransactionConfiguration to...

    Change @TransactionConfiguration to @TransactionConfiguration(defaultRollback=false)

    You should get:



    Is this what you here expecting?
  11. Replies
    2
    Views
    710

    You can find details here...

    You can find details here.
  12. hibernate template uses hibernate sessions for...

    hibernate template uses hibernate sessions for persistence. Hibernate session does support versioning.

    More info here.
  13. ...

    <bean id="blah" class="x.x.Employee">
    <constructor-arg index="0" value="Senthil Kumar"/>
    <constructor-arg index="1" value="Sekar"/>
    </bean>
  14. Replies
    9
    Views
    838

    Do this:

    Do this:


    <bean name="beanA" class="classA" abstract="true">
    <property name="map">
    <map merge="true">
    <entry key="A" value="1"/>
    <entry key="B" value="2"/>
    </map>
    ...
  15. Please post the full exception stack trace.

    Please post the full exception stack trace.
  16. You should be using I think this is only...

    You should be using



    I think this is only available in JEE 6.

    Refer to this
  17. Replies
    2
    Views
    860

    If the prototype bean lives for the life of the...

    If the prototype bean lives for the life of the application then the datasource be referenced by it. However, if the prototype bean is tied to a thread then it will be destroyed when the thread ends....
  18. Replies
    1
    Views
    846

    Refer to this...

    Refer to this.
  19. This ...

    This might solve your problem.
  20. Please refer to this...

    Please refer to this
  21. Replies
    3
    Views
    6,078

    The following plugin should do the job ...

    The following plugin should do the job



    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-war-plugin</artifactId>...
  22. Here's what you need. applicationContext.xml ...

    Here's what you need.

    applicationContext.xml

    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
  23. Replies
    1
    Views
    1,123

    Refer to...

    Refer to http://static.springsource.org/spring/docs/3.0.x/reference/transaction.html#transaction-declarative Section: 10.5.6 Using @Transactional
  24. Replies
    4
    Views
    889

    Define a list using a ListFactoryBean as shown in...

    Define a list using a ListFactoryBean as shown in http://springindepth.com/book/in-depth-ioc-collections.html. I hope this helps.
  25. You will have to use a custom datasource factory....

    You will have to use a custom datasource factory. Here is some sample code to get you started



    import java.util.Properties;

    import javax.sql.DataSource;

    import...
Results 1 to 25 of 75
Page 1 of 3 1 2 3