Questions tagged [database-driven]

25 questions
51
votes
6 answers

Embedded PostgreSQL for Java JUnit tests

Is there an embedded PostgreSql so that we could unit test our PostgreSql driven application? Since PostgreSql has some dialects, it's better to use embedded PostgreSql itself than other embedded databases. Embedded does not necessarily mean it…
blue123
  • 2,937
  • 7
  • 27
  • 29
8
votes
3 answers

Domain Driven Design vs Database Driven Design for an MVC Web application

I am expanding/converting a legacy Web Forms application into a totally new MVC application. The expansion is both in terms of technology as well as business use case. The legacy application is a well done Database Driven Design (DBDD). So for e.g.…
7
votes
7 answers

how to add dynamic math to webpage

I'm a math teacher wanting to insert some dynamic math into a website. What I'd like to achieve is to have a button that a student can press to randomly vary a question so that it's the same type of question, but with different numbers. For…
Bill
  • 161
  • 1
  • 2
  • 5
6
votes
1 answer

Is this a good strategy for implementing access control?

I'd like to implement a database-driven access control system. I've been reading about ACL, roles, RBAC, etc., but it seems like the most common schemes have some major drawbacks. RBAC, for example, seems to be clunky when it comes to implementing…
alexw
  • 8,468
  • 6
  • 54
  • 86
5
votes
3 answers

Client side javascript driven websites

Is it possible to build dynamic web applications using client side javascript as the pivotal point? I'm not talking about server side javascript (like node), I'm talking about handling most of the site with javascript: templating, form handling…
pistacchio
  • 56,889
  • 107
  • 278
  • 420
5
votes
3 answers

ASP.Net MVC Database-driven menu with caching

I am trying to create a menu for my website. It needs to meet the following requirements it must be database driven, pulling data from DB to build up the menu structure the data being pulled from the DB needs to be cached - I do not want to hit the…
Saajid Ismail
  • 8,029
  • 11
  • 48
  • 56
4
votes
3 answers

Tutorials For Database-Driven Routing in Zend Framework?

I am working on a project that needs to use a database driven MVC scheme where the route to the controllers and views are controlled through a single database table. However, I haven't been able to find any tutorials that demonstrate this with a…
4
votes
1 answer

How should a database-centric Java Swing application be designed?

I have been writing a database-centric Java Swing application for a while. The GUI and DAO-code ends up in a big tree like: JFrame | JTabbedPane | +--------------------+----------------------+-------------+ | | …
Jonas
  • 121,568
  • 97
  • 310
  • 388
2
votes
3 answers

Do you create classes to handle "entities" for data driven apps?

I'm a newbie and when messing around with creating database applications I always just created my forms and put all the code and bindings in there. Instead of having arrays and lists that held information I made changes to the database…
Pete
  • 10,651
  • 9
  • 52
  • 74
2
votes
1 answer

Why is programming interface to database called driver?

When writing an application which updates or queries a database, we use something called a database driver (e.g. a JDBC driver). I wonder why it is called a driver instead of a library? Is libpq a driver too?
user3284469
2
votes
1 answer

SEO on a Database Driven Website

I have a question about a site I'm developing. It is a database driven directory site where people can make a profile and list themselves in one or many area codes and in one or many fields of work. When someone is looking for a person to hire,…
Ryan Giglio
  • 1,085
  • 1
  • 14
  • 26
1
vote
3 answers

Enum with constant and also dynamic values from database

I have a current state where an enum MyType represent Type table with columns as: ID Name And it's used to identify type using ID parameter with byId method: public enum MyType { FIRST_TYPE("First Type", 10), SECOND_TYPE("Second Type", 20); public…
Ori Marko
  • 56,308
  • 23
  • 131
  • 233
1
vote
1 answer

Missing default Spring messages from database driven message bean

I created a database driven message bean which loads messages from database and if a message key cannot be found then it falls back to properties files. It works fine except one thing. All other message properties from spring are missing. (Eg.…
sfeher
  • 51
  • 4
1
vote
1 answer

What executes SQL commands submitted by an application program, if no DBMS is running?

When you are writing a program which uses a database driver, from Why is programming interface to database called driver? There are databases that allow you to embed them within your process (like sqlite), but if you're working with a database…
user3284469
1
vote
1 answer

How are users authenticated and customised pages served before a web page renders without javascript?

A good example of this is facebook's mobile view. This is not reliant on javascript and is able to authenticate the user with the server. If they are authenticated it will request and load your custom webpage, and if not you will see facebook's…
Adam Griffiths
  • 680
  • 6
  • 26
  • 60
1
2