Darren Bell

Greenhorn
+ Follow
since Aug 01, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Darren Bell

You could use the Eclipse modeling framework to create a model and a view from the DTD or XSD file. You'd then have a view to use in your app.

That's if you're using SWT/JFACE though.

daz
19 years ago
Sorry if this is in the wrong place, but i thought i'd ask you guys/gals if you had used Hibernate in this way.

I am struggling to use hibernate in a plugin. I have all the jars for hibernate in one plugin. All my model classes for a database are in another plugin and the user interface (views etc) are in another plugin.

These all get wrapped into an RCP app.

The problem is that hibernate cannot find the model classes at runtime. I know this is to do with class loaders, but how can i make hibernate find the classes.

Any help on this would be appreciative.

Thanks
Darren.
Paul,

You can use Eclipse 3.0 and use the update features to automatically update your app, but due to the plugin structure i'm not sure that it can be distributed via jnlp.

Hava look here https://bugs.eclipse.org/bugs/show_bug.cgi?id=48416
19 years ago
SWT with JNLP works perfectly. We are using it for quite a few apps.
I'd also like to know how to package up an RCP application as that's the direction we're heading in.

I think the issue is what to do with all the plugins.
19 years ago
How many levels down does this go? I mean can a panel belong to a panel which then belongs to a panel? If so, this is the classic parent child relationship model. I have used this many times in ERP systems as this is used to store product structures (bills of materials).

Add a referential constraint from accumalated_panels.contained_panel_id which points to accumalated_panels.containing_panel_id.

This set up would then allow the deletions of entire structures through a cascade delete and also enforce that a child must have an entry on the panel table.

Another way is to place the parent panel ID on the panel table itself and do away with the accumalted_panels table and add the self referencing constraint to the panels table. This nicely enforces the rule that a panel can be a child to a single parent at a time, but a parent can have many children referencing it.

I hope this makes sense.

Darren.
Hmm... I take it that from the lack of responses, that this functionality is not present in any mapping system.

Looks like we'll have to stick with our in-house system then.
This also may have something to do with the fact that IBM and BEA have jointly put forward a recommendation called SDO (Service Data Objects). Have a look on developerWorks.
We use an in house writtem object/relation mapping tool that allows queries to be created that generate retrievers. These retrievers will get more data from the underlying resultset, format then into object(s) and pass then beck via next() or nextBatch().

This is useful for client apps that perform a query over a large number of records and as they scroll down the gui (SWT btw) will ask for more data from the retriever.

Can this same functionality be achieved via OBJ/Hibernate etc?

Thanks

Darren.
Anyone here using Maven to build their in-house projects. We are starting to look at it and i'd like to hear other users experiences please.
Thanks,
Darren
Right then, i'd better get posting. Which forum would you recommend?
20 years ago
Maven seems to be gaining momentum, so is it possible for this to be added as a product?
Cheers
Darren.
20 years ago
Also, if you are deleting single rows, it's best to use all the primary key fields in the where clause. This gaurantees that only a single row will be deleted.
Are you using the Java SDK (NET)? If you are then you are getting the same connection on each request. Also, you are opening a connection each time, which introduced a performance penalty.
As you are using a web application, try using pooled datasources instead of the DriverManager.
We currently use Websphere 5 and use JNDI to look up the datasources and then get a connection from that. Once you have finished with a connection, remember to close it.