Questions tagged [entity-bean]

46 questions
0
votes
1 answer

org.omg.CORBA.MARSHAL: WARNING: 00810057: Could not load class

I am testing simple Enterprise application but I am getting following error when I call remote method. type Exception report messageInternal Server Error descriptionThe server encountered an internal error that prevented it from fulfilling this…
user5424709
0
votes
1 answer

@Size annotation not trimming whitespace

I have an Entity bean and one of its String-type properties has a @Size annotation as follows: @PSanityCheck @Size(min = 8, max = 8, message = "validation.servicecode_length") @NotEmptyData @Column(name = "servicecode") @Field private String…
Steve Waters
  • 3,348
  • 9
  • 54
  • 94
0
votes
2 answers

How to create project in WebLogic Workshop with support for JPA entity beans?

How to create a project in WebLogic Workshop (version 10.3) with support for JPA entity beans? I am trying create a separate EJB and EJBClient projects in Workshop and EJB3 session beans work just fine, but I am having problems with JPA entity…
Juha Syrjälä
  • 33,425
  • 31
  • 131
  • 183
0
votes
1 answer

how to use spring to inject EntityBean on EJB 2.1 version using version 2.5 for JDK1.4

I have a legacy project that is running over WebLogic 8.1, J2EE 1.3 using JDK 1.4 We have a lot of EJB's, Session and EntityBeans. We're intending to create a framework to migrate these applications to Java EE 6, but then we though that's possible…
0
votes
1 answer

am i using correct way of JSF coding?

I'm new in JSF. Can i use this way of coding instead of using EL in JSF view? and correct me if there is something wrong in my coding or should i use better way. @Named @RequestScoped public class RegistrationBacking extends Root { @EJB …
Arash
  • 696
  • 8
  • 24
0
votes
0 answers

JSF and EJB integration

I am trying to create a login page for my application but i am stuck on the very first step. My form is working fine before using session facade in my bean, after adding session facade i got property not found exception: My page is:
0
votes
2 answers

EJB Project doesn't connect to the right Derby database/table

having a problem yesterday that i couldn't connect to the derby database (most likely due to persistence.xml issues) I have been guided to modify my persistence.xml so that it contains two additional poperties;
Adrian
  • 215
  • 1
  • 6
  • 14
0
votes
1 answer

Entity Bean finder methods VS DAO?

Will there be a performance improvement if I remove the entity bean (finder methods) and introduce the DAO layer instead. I want to do this mainly for reading data from the DB. I have a process in my project which has around 15 entity beans finder…
Ashish
  • 11
  • 2
0
votes
1 answer

Auto Increment Using @ Generated

I am using sql server 2008R2 for my java enterprise app. Now, I want that while persisting a bean its Id column gets automatically updated. My entity bean is: @Entity @Table(name = "BANK_MASTER") @XmlRootElement public class BankMaster implements…
0
votes
1 answer

Entity Bean State after Database Migration

Does Migrating from one database to another database requires comprehensive change in the Entity Beans? I have oracle 11g express edition and I want to move to MS Sql?
0
votes
1 answer

Can I get something like an entity bean in EJB 3.2?

I was reading a Java EE book recently, and apparently entity beans were recently removed from the EJB specification. You are supposed to use JPA instead. But I want entity beans!! What I am really looking for is a JPA persistent entity that is…
tbodt
  • 16,609
  • 6
  • 58
  • 83
0
votes
1 answer

Create Entity Class from Remote Database (through connection)

I am using Netbeans 7.3.1, working on CloudBees host infrastructure (JBoss 7). In the Services panel, I have created a connection to the remote MySQL database. I also added the persistence.xml information provided in CloudBees management page into…
Luke Vo
  • 17,859
  • 21
  • 105
  • 181
0
votes
1 answer

Java EE Glassfish error compiling non existing named query

My problem is following: In one entity class I have added NamedQuery that didn't compile well at the time of application deployment to server. The problem was that I was using wrong entity name in it's JPQL statement, so I've decided to remove that…
cw3le
  • 1
0
votes
1 answer

EJB methods vs Entity methods,who should have what methods?

public class EntParent{ @OneToMany List manyEnt1; } public class Ent1 { Field1 Field2 @ManyToOne EntParent dad; getField1 setField1 getField2 setField2 getDad setDad } public class Ent1ManagerEJB{ } in this scenario…
Yadnesh
  • 1,307
  • 3
  • 17
  • 36
0
votes
0 answers

creating entity beans

i want to create a java EE application (bean container and web container) in netbeans to store customer and order details. one customer can have many orders.but order contains only one customer. 1)should be able to view order details with customer…
Hashan
  • 185
  • 2
  • 2
  • 8