I have some EJBs in an EAR file that I want to use in a separately deployed WAR
file. I figured making them use the same unified class loader through
jboss-app.xml/jboss-web.xml would solve this problem, but I'm still getting
ClassNotFoundExceptions when I attempt to load the appropriate classes
anonymous wrote : I was searching info about ON DELETE SET NULL equivalent in
EJB. All I found is that (probably) this is not implemented. Is this true?
For some incomprehensible reason, Hibernate devs consider this functionality
"bad design", even though RDMSs have supported it for a long time n
Why are you using SerialVersionUIDs in the first place? I've done just fine
without. Oh, and remote interfaces don't need to implement Serializable anyway.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129506#4129506
Reply to the post :
http://www.jboss.com
Suppose I have a Set of Integers as a collection valued property in an entity
class, and I want to include it in the results (projection) of a criteria
query, how do I do it? The Hibernate documentation only explains how to do it
for associations.
If I try to map it to an alias, I get a MappingE
anonymous wrote :
| int modelId = u.getModel().getId(); // causes read of Model table!
|
| Issue - this will cause a read of the model row from the DB (won't it, as
in lazy loading will perform a JIT read)
|
No it won't. You obviously haven't tried it, or you wouldn't be asking about
i
Seems to me like you are not packaging the necessary classes in your .ear file.
Either that, or you packaged stuff in the EJB jar that the WAR needs or vice
versa.
If this doesn't help, then please paste the file list of your EAR, EJB-jar and
WAR and their manifests.
View the original post :
h
You can't have associations to the root class if it's just a MappedSuperClass
-- it has to be an entity.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109493#4109493
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=41094
Hibernate creates a primary key column of type "bytea" instead of "integer" if
I use @Id and @Enumerated together in the same field. I guess I should file a
JIRA issue?
Oh yeah, I'm using Postgresql 8.2.5.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109336
The problem is that I have an Employee object associated with every Document.
When the Employee goes away, the link has to be severed. Being able to do that
implicitly (with cascade=CascadeType.REMOVE) would be the ideal solution. Right
now I have a hack involving a custom annotation, parameter
I have the following named query:
| @NamedQuery(name = SalesOrderExtraChargeLine.QUERY_UNBILLED_DATERANGE,
query =
| "SELECT el FROM SalesOrderExtraChargeLine el WHERE el.order.orderDate >=
:startDate AND el.order.orderDate <= :endDate AND el.invoiceLines IS EMPTY AND
NOT EXISTS (SELECT pl
The structural changes in Hibernate between 3.2.x -> 3.3.x are potentially
dangerous to existing apps.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108073#4108073
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108073
Because I need to have different sequences in subclasses. The root class is
Document, and subclasses are SalesInvoice, OrderConfirmation etc that need to
have their own numbering schemes.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107654#4107654
Reply to
Do you really expect to have more than 2^63 cases ever? Or why else would you
not use 64 bit integers (long) for keys?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107570#4107570
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode
Is it possible to have one abstract class as a root class in the
table-per-class inheritance strategy, but have different ID generators for each
of the subclasses? I need to have one-to-many associations to the root class,
which is not possible unless it's an entity class.
View the original pos
I checked out the JBossAS trunk from SVN and then tried to compile it by going
to the "build" directory and running "build.sh", but it seems like the
"thirdparty" directory doesn't get populated with the appropriate libraries.
What am I doing wrong?
View the original post :
http://www.jboss.com
Why are you using the data source directly?
Not that it's the cause of your problem, but IMHO EJB3 Persistence should be
used instead unless you have a good reason not to.
Where did you deploy your data source? Could you show its deployment descriptor?
Also, when you look up beans remotely, you
1. Assuming that your client is a standalone application, the project should
not have been created as an EJB Project, but a normal Java project.
2. I tried exporting an EJB Jar from my own project and it worked fine.
If you could make a zip file of your project, I could take a look and see if
th
1. Speak English
2. Explain the problem clearly -- just saying "This doesn't work!!1!!1!" isn't
helping
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079759#4079759
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=407975
anonymous wrote : Other strange thing that I discovered is that the /lib/pu.jar
explicitly needs to be definded in the application.xml file else the
persistence-unit won't be initialized. Other dependencies in this directory get
found. Is this also a bug?
No. If you just put your jar in the /lib
anonymous wrote : thanks I arrive to pass id in parameter.
|
| But i don't arrive to get it in java, always null value :(
|
You probably meant to use some other word here than "arrive", but I can't
figure it out.
Anyway, you need this in the component you use on the destination page:
|
anonymous wrote : So how add id => #{msg.id}
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077326#4077326
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4077326
_
You only have to use @Remote when you plan to make the session bean available
to clients outside the container JVM (for a client application).
There are a number of advantages to using EJB3 session beans instead of POJOs.
SFSB replication across the cluster is handled by the container, as is
per
All in all, using servlets instead of a4j:mediaOutput is starting to look like
a better solution -- I get to control what kind of URLs I use (those generated
by a4j:mediaOutput are among the ugliest ever) and what the headers look like.
View the original post :
http://www.jboss.com/index.html?m
Ok, "kinda" solved this with the ugliest imaginable solution:
Binding the entity manager factory to JNDI and then looking it up in said
managed bean.
Please, offer me a plausible alternative :(
This solution works, but introduces a vendor dependency (the JNDI structure
being different for each ve
1. I'm not using a seam-managed persistence context
2. Component.getInstance() would just throw an exception saying that there is
no application context active
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076072#4076072
Reply to the post :
http://www.jboss
Tried to use a managed bean but hit a snag...where to get a reference to the
persistence context? If this was JEE5, all I had to do was to have the
container inject it to my managed bean, but since it's not, I have nothing.
View the original post :
http://www.jboss.com/index.html?module=bb&op=v
Hm, you are probably referring to this:
http://jira.jboss.org/jira/browse/AJSF-54.
Forum link: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=107203
I gather the only workaround for now is to define "download" as a managed bean
in faces-config.xml? This should work for me since I don't
I'm trying to display thumbnails of images I have on the database using
a4j:mediaoutput, like this:
The "download" component looks like this:
| @Name("download")
| @Stateless
| public class DownloadBean implements Download {
|
| @PersistenceContext
| private EntityManager em
What the heck are you trying to tell? What's this about? Are you on drugs?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075308#4075308
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075308
We're a small company and as such don't have any special DBA personnel.
Therefore I vouch for auto = update during development and initial deployment,
and then switch to validation (no schema updates). I don't see anything wrong
with that.
View the original post :
http://www.jboss.com/index.ht
anonymous wrote : And I'm not touching shit like web.xml until I have to, ie.
if something stops working because of it. I don't particularly care what's in
it.
I appreciate your work, and if I sounded impatient, that was not my intention.
I just don't know what's going on inside JBoss, and I was
Okay, it seems to use a servlet that looks up an application scoped component
to get hold of an EntityManager instance. This would seem like a better
solution than a JNDI lookup that I was doing in my servlet.
The s:download or whatever would still be greatly appreaciated.
The Wiki example seems
There may be an obvious solution to this that I've completely missed, but here
goes:
What's the best way to allow the user to download arbitrary generated binary
content (forum file attachments)? I was thinking of a servlet based solution,
but getting hold of an entity manager instance in a pre-
I'm no Seam dev, but this looks like a bug to me.
Log injection should happen during post-activate.
Is Seam re-injecting any other components then?
Perhaps you should create an issue in JIRA.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074204#4074204
Reply
Created.
http://jira.jboss.org/jira/browse/JBSEAM-1798
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073734#4073734
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073734
___
Alright, I picked up the latest CVS version and Session injection indeed seems
to work now.
However, while testing I also noted that getDelegate() from a proxied
EntityManager (@PersistenceContext(type = EXTENDED)) throws a NPE.
Is this supposed to work?
View the original post :
http://www.jbos
JIRA issue created:
http://jira.jboss.org/jira/browse/JBSEAM-1787
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073387#4073387
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073387
_
anonymous wrote : @PersistenceContext is part of JPA, why would it be able to
inject a Hibernate Session.
Further proof here:
http://docs.jboss.com/ejb3/app-server/reference/build/reference/en/html/hibernate.html
anonymous wrote :
| 4.2. Injection Hibernate Session and SessionFactory
|
| Y
It works perfectly well without the Seam interceptors messing with it. Try it
and you'll see.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073296#4073296
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073296
Trying to inject a Hibernate Session with @PersistenceContext fails:
anonymous wrote :
| java.lang.ClassCastException: $Proxy1497 cannot be cast to
javax.persistence.EntityManager
The reason for this was pretty obvious once I took a look at the code of
org.jboss.seam.intercept.SessionBeanInter
And if I only want a sum of deliveries before a certain date? Referring to the
map key has been the crux of the problem!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070852#4070852
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mo
Please help, I've asked a similar question several times and it's never been
answered!
Suppose I have an entity like:
@Entity
| class Delivery {
| private long id;
| private Map amounts;
|
| @Id @GeneratedValue
| public long getId() {
| return id;
| }
|
| pub
I never configured the content-type. Where should it be configured?
In my template I use
|
| ...
|
|
Because otherwise the content-type is set to application/xhtml+xml, which
causes some javascript to not function, and sets the background color to white,
regardless of what I defined
I have an EJB client app and an EAR on the server, and the following snippet
added to the server's login-config.xml:
|
|
|
| java:/MyappDS
| SELECT password FROM
employee WHERE id=?
| SELECT accessLevel, 'Roles'
FROM emp
What's the Content-Type header returned by the server for your Seam pages?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065401#4065401
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065401
Replied too quickly it seems.
Changing the URL pattern to .xhtml gets rid of the .seam extension, but doesn't
solve the rss problem.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064264#4064264
Reply to the post :
http://www.jboss.com/index.html?module=bb&o
My problem has nothing to do with MIME types. Please read the problem
description more carefully.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064263#4064263
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064263
Is it possible to configure web.xml so that I could use the .xhtml extension
directly instead of .seam? The Seam Blog example uses /seam/* which I like even
less. At the moment, if I use the .xhtml extension directly, I just get the raw
contents of the file.
Another related problem is getting my
Please post the code for the "person" entity. The key is how you defined the
"phones" collection.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062683#4062683
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062683
I have a situation where it'd be advantageous to be able to deploy an
application in parts. I'd like to have the main application deployed at all
times, and I want to be able to separately deploy/undeploy modules that depend
on the EJBs in the main application.
How do I accomplish this? Any poin
Could you show the code for that bean please?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062671#4062671
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062671
___
jboss-use
Why are you using Toplink Essentials instead of Hibernate? There are no
advantages to that, only drawbacks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062670#4062670
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=40
Alright... *sigh* false alarm. Seems like there was a mixup between the "items"
and "value" parameters between the and elements, that's
all. Even when I knew they had different parameters for that...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061650#406
On a closer inspection, the tag does seem to help considerably.
Although I still get database hits on page load, only a few queries are
executed each time and the loading time is about 1/7 of normal.
Maybe some fine day I'll understand all this :P
View the original post :
http://www.jboss.com/
I found this:
http://wiki.java.net/bin/view/Projects/FaceletsFAQ#Why_doesn_t_my_c_if_ui_repeat_ui
and this:
http://www.ninthavenue.com.au/blog/c:foreach-vs-ui:repeat-in-facelets
but I'm still confused. How should I go about with this? Forcibly try to cram
this into a ?
View the original post :
h
I'm using JBoss 4.2.0GA and therefore JSF 1.2, with Seam 2.0.0beta1. Perhaps
this is a Facelets issue?
Here's the xhtml snippet:
|
|
| Category
| Files
|
This is a JBoss bug. Class loading was done in the wrong manner, relying on an
unintended side effect of the class loading mechanism, and when the behavior
changed in Java 6, it broke a lot of software. What you see there is a failed
attempt at loading the class for String[], not String. JBoss A
I need to display a nested list as follows:
Root category 1
| Subcategory 1
| Subcategory 2
| Root category 2
| Subcategory 3
I first tried doing this using the Facelets element, only to find
out that only the outer layer (the root categories) were rendered. Using JSTL's
fix
Never mind, I remembered now.
The problem was that my host name was resolved to 127.0.1.1 because such an
entry was present in /etc/hosts. After commenting that out, it worked fine.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059962#4059962
Reply to the po
I have a problem with my EJB Client app.
Remote JNDI lookup works, but during RMI invocation it tries to connect to
127.0.1.1 instead of the remote host. I've been developing this app for a long
time and everything has worked correctly until now. Yesterday I switched to
Ubuntu (from Fedora), and
@Local only works if the calling end is running within the same VM as the
server. Therefore you need to use @Remote instead if you want your beans to
work with application clients.
Why are you still trying to get dependency injection to work? Last I heard it
doesn't work with JBoss at all -- and
If you need to handle multiple persistence contexts with the same entity
manager, you could implement your own PersistenceProvider and overriding
Hibernate's methods as necessary to make EntityManagerFactories churn out your
own entity manager objects.
View the original post :
http://www.jboss
I was about to ask the same question, but then I saw this post. My solution is
to just use
@EJB ExtEntityManager em; instead of @PersistenceContext EntityManager em;, but
if you use multiple persistence units, it may not be such a practical approach.
View the original post :
http://www.jboss.co
Ah yes, I had forgotten about this thread :(
This is probably related to the problem I've been having. What was the cause?
I have encountered this problem frequently on two different development boxes
running different versions of JBoss, on entirely different projects! That's why
I was a bit surp
If I have
| @CollectionOfElements
| Map map;
|
in an entity, then how can I access those map elements in a HQL query?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044297#4044297
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=postin
I have noticed that whenever the deployment of an EJB3 app fails due to any
reason, the EJB3 service is unregistered. As a result, subsequent attempts at
deploying any EJB3 application fail until the server is restarted. Anyone care
to explain why? This happens on both 4.0.5GA and 4.2.0CR2.
---
If you REALLY want help, then maybe you should be more specific. Downloaded
what application? Got what error? And mind the spelling and grammar. Have you
read any one the tutorials?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043642#4043642
Reply to the p
"FelderR" wrote : JBoss 4.0.5 works fine with Java 6!
|
| Just tried to run JBoss 5.0.0 beta 2 with Java 6 and failed:
|
| java.lang.IllegalStateException: Class not found: [Ljava.lang.String;
|
| The server does not come up as it runs into the following bug within JDK
1.6.0:
|
Well, I'll be damned. There was no way I could've figured this out given those
error messages. Thank you very much!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037455#4037455
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=r
Ok, I've been busy trying to figure out WTF is wrong with this. According to my
research, Ajax4JSF + Facelets = bust. I created a very simple page with one
managed bean, no Seam involved. causes an error message if
Facelets is involved, but works fine on the corresponding JSP page. If I change
No, it still doesn't work. I made a real simple xhtml page:
|
| http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
| http://www.w3.org/1999/xhtml";
| xmlns:a4j="http//ajax4jsf.dev.java.net/ajax"
| lang="en" xml:lang="en">
|
| Test
|
|
|
|
Looks like I had some old libs in WEB-INF/lib/ that may have caused these
problems. At least I'm getting all different error messages now =)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036178#4036178
Reply to the post :
http://www.jboss.com/index.html?mod
I don't know what code you want to see, but here's the bean code:
| @Stateful
| @Scope(ScopeType.SESSION)
| @Name("categorybean")
| public class CategoryBean implements CategoryLocal {
|
| private static final int PAGE_SIZE = 30;
|
| @In
| private EntityManager
Sorry but it still doesn't work.
| javax.el.ELException: /category.xhtml: Property 'jumpPage' not found on
type org.javassist.tmp.java.lang.Object_$$_javassist_89
| at
com.sun.facelets.compiler.AttributeInstruction.write(AttributeInstruction.java:53)
| at
com.sun.facelets.
Thank you very much!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035791#4035791
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035791
___
jboss-user mailing list
jboss-user
Ok, but meanwhile, I wanted to put up links so the user can jump to another
page on the table without having to refresh the whole page. How can I possibly
accomplish this? How can I tell the seam component which page I want to jump to?
View the original post :
http://www.jboss.com/index.html?mo
The tag
|
fails to render, saying:
javax.el.ELException: Error Parsing: #{categorybean.setPage(0)}
| at
org.apache.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:125)
| at
org.apache.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:146)
|
Are you sure you're not using jbosall-client.jar? That one contains a broken
copy of jbossremoting. Don't use it. Also make sure that your client, too, uses
the fixed version.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027842#4027842
Reply to the post :
anonymous wrote : Hello you all! Just ran into the problem that you are
describing in this thread. What I can't find is how to solve it. JBoss-Remoting
1.4 and 2.0 is available for download but the fix doesn't seem to be included.
Tom Eldor posted a link to the fixed JBoss Remoting in this thread
anonymous wrote : I could just override it and provide the user to force a full
or incremental republish and keep track of the changes in my own API.
How do I do an incremental republish? What exactly does it mean?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&
You can't.
See http://www.jboss.com/index.html?module=bb&op=viewtopic&t=98358 to find out
why.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025758#4025758
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025758
___
First of all, when you ask for help, enclose your code with the "code" tag (use
the buttons provided).
Next, package your session beans in a .jar file. The .ejb3 extension is
deprecated.
Third, the correct JNDI path is //(remote|local).
Just because you packaged your beans in a directory named "b
Thank you, but could we get an unofficial estimate when beta3 will likely be
released? A lot of that banging head to the wall comes from the fact that the
xml descriptor was incorrectly configured and resulted in Eclipse thinking that
the IDE needed its own copy of WTP. That was fixed a long ago
Not to my knowledge, but jbossall-client does not contain anything unique. It's
just a bunch of existing jars thrown together for convenience.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021353#4021353
Reply to the post :
http://www.jboss.com/index.html?m
Probably when they fix the rest of the components (JGroups etc.) that have this
same bug, since I don't think they'll make any official releases before they
can run the complete test suite.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021292#4021292
Reply
Sorry again, folks -- false alarm! Turns out I was including
jbossall-client.jar on the list of resources in my application's JNLP file, and
apparently that jar contains the old remoting code, which caused the exception.
View the original post :
http://www.jboss.com/index.html?module=bb&op=view
Sorry for the accidental double post. Anyway, I found the sources from the link
in Tom's post. Let's see what causes this.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021156#4021156
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&
I just tried to launch my app via Java Web Start, and while running it I got a
familiar looking exception. Here's the stack trace:
| java.lang.reflect.UndeclaredThrowableException
| at $Proxy1.getList(Unknown Source)
| at
fi.karico.etikettu.client.view.editor.ProductEditor$ListTabl
I just tried to launch my app via Java Web Start, and while running it I got a
familiar looking exception. Here's the stack trace:
| java.lang.reflect.UndeclaredThrowableException
| at $Proxy1.getList(Unknown Source)
| at
fi.karico.etikettu.client.view.editor.ProductEditor$ListTabl
For the record, here's the code for the MaterialUnit enum inside the Material
class:
| public enum MaterialUnit {
| SQUARE_METRES("m\u00b2"),
| ROLLS("rll"),
| PIECES("kpl"),
| KILOGRAMS("kg");
|
| private final String name;
|
Tried that, and "com.foo.Material$MaterialUnit.SQUARE_METRES", no dice. Gives
the same error still.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020654#4020654
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4020654
__
According to the Hibernate manual, it is possible to use public static final
constants directly in HQL queries.
Why then can I not use enums there as well?
I tried
| SELECT DISTINCT m FROM Material m, IN(m.suppliers) s WHERE m.unit <>
Material.MaterialUnit.SQUARE_METRES AND s.id = :id
|
and
You can instruct MySQL to create InnoDB tables by default.
Just put
| default-table-type=innodb
|
under [mysqld], and you're set.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020499#4020499
Reply to the post :
http://www.jboss.com/index.html?module=bb
Have you checked whether the correct foreign keys are in place in the database?
If not, have you tried to drop the tables and allow Hibernate (which I assume
you're using) to generate the tables again?
On a side note, a few non related tips for you:
1. You don't need an explicit constructor if
anonymous wrote : Is there a solution to this problem yet?
It is supposedly fixed, but no new releases have been made since. It should be
fixed with 2.0beta3, but JBoss are taking their sweet time getting that done.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&
Could someone help me understand why @CollectionId is required for multiple
simultaneous bag fetching? All it does is create an invisible primary key for
the collection. I understand this in the case of unidirectional relationships,
but if I have a bidirectional relationship, what purpose does t
Specify a different join table for each collection.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006373#4006373
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006373
___
jbo
Curiously, the EJB 3.0 project has nothing to do with Java EE. You can't add an
EJB 3.0 project to an EAR project like you normally would in any normal server
application.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006312#4006312
Reply to the post :
htt
To my knowledge, m.flush() guarantees that the database commit happens before
the method returns (or else it will throw an exception).
I can't understand why you inject an EntityManagerFactory instead of an
EntityManager.
What is the purpose of afterCompletion()? And why is the bean stateful and
Are you by any chance using "service" through a remote interface?
Why do you need to cast the result to User btw? Does that method return other
objects than Users?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000887#4000887
Reply to the post :
http://www.j
1 - 100 of 144 matches
Mail list logo